フィルターのクリア

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

4 ビュー (過去 30 日間)
Andrew Alkiviades
Andrew Alkiviades 2012 年 6 月 20 日
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 日
reshape(A, [size(A,1) * size(A,2), size(A,3)])

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeNumeric Types についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by