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

5 ビュー (過去 30 日間)
Rabeya
Rabeya 2012 年 6 月 5 日
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 Center および File ExchangeGet Started with MATLAB についてさらに検索

タグ

製品

Community Treasure Hunt

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

Start Hunting!

Translated by