フィルターのクリア

Converting a matrix of other forms into one simple matrix - help

2 ビュー (過去 30 日間)
Itachi
Itachi 2012 年 9 月 11 日
Hi guys, I have 4x36x4 matrix and I wanted to make it into 16x36 matrix, is there anyway to do that?
Best regards, Ayubirad

採用された回答

Andrei Bobrov
Andrei Bobrov 2012 年 9 月 11 日
編集済み: Andrei Bobrov 2012 年 9 月 11 日
please read about the function reshape
A = randi(456,4,36,4); % Let the initial array
out = reshape(A,16,[]);
ADD (please read about the function permute)
out = reshape(reshape(A,size(A,1),[])',size(A,2),[])';
or
out = reshape(permute(A,[2 1 3]),size(A,2),[])';
  3 件のコメント
Andrei Bobrov
Andrei Bobrov 2012 年 9 月 11 日
please see ADD in my answer
Itachi
Itachi 2012 年 9 月 11 日
Thanks.

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

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeMatrices and Arrays についてさらに検索

製品

Community Treasure Hunt

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

Start Hunting!

Translated by