what does this mean? say for a matrix W, W(:,:,1)

5 次查看(过去 30 天)
I have seen this in a program code, but don't know what it means. Say for example, for any matrix W, W(:,:,1). I know W(:,:) indicates all rows and columns in W, but what is meant by the last 1?

采纳的回答

Christoph
Christoph 2012-6-5
hi rabeye,
it's possible to store more than one matrix in a variable. The last element just indicates the level of the desired matrix.
To get a better clue just enter the command W = rand(5,4,3)
With kind regards, CN

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Get Started with MATLAB 的更多信息

标签

产品

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by