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

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일

0 개 추천

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개)

카테고리

도움말 센터File Exchange에서 MATLAB에 대해 자세히 알아보기

제품

태그

질문:

2012년 6월 5일

Community Treasure Hunt

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

Start Hunting!

Translated by