フィルターのクリア

creating 2D matrid from 3D matrix

2 ビュー (過去 30 日間)
Bibek
Bibek 2011 年 12 月 22 日
I have a matrix F of size 201*3*201. I want to create another matrix Z of size 40401*3. I can do this as: Z=[F(:,:,1);F(:,:,2);......F(:,:,201)]; But how can I do this more quickly using loop or by any other tricks?

採用された回答

Walter Roberson
Walter Roberson 2011 年 12 月 22 日
Z = reshape( permute(F, [1 3 2]), [], 3);
  1 件のコメント
Bibek
Bibek 2011 年 12 月 23 日
Thanks for your input. It worked for me exactly in the way I wish

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeCreating and Concatenating Matrices についてさらに検索

タグ

タグが未入力です。

Community Treasure Hunt

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

Start Hunting!

Translated by