how do you stack (using colon) a 3 dimensional matrix

Hi
I have a 3 dimensional matrix A(:,:,K) which I want to stack all the columns per value of K
I haven't found the coding for a 3 dimensional matrix (otherwise I expect to have used B = A(:) which in this case doesn't seem to work

 採用された回答

Walter Roberson
Walter Roberson 2012 年 6 月 20 日

0 投票

reshape(A, [size(A,1) * size(A,2), size(A,3)])

その他の回答 (0 件)

カテゴリ

ヘルプ センター および File Exchange で Multidimensional Arrays についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by