matrix arrangement problem for loop

2 ビュー (過去 30 日間)
tsai kai shung
tsai kai shung 2017 年 10 月 30 日
コメント済み: tsai kai shung 2017 年 10 月 30 日
hey guide i want arrangement the matrix like: a = [1 2 3 4 5 6 7 8.........unknown number] but matrix is A multiple of four
how to use for loop to become
a = [1 2 3 4; 5 6 7 8; 9 ....; .....unknown number];

採用された回答

Roger Stafford
Roger Stafford 2017 年 10 月 30 日
a = reshape(a,4,[]).';
  1 件のコメント
tsai kai shung
tsai kai shung 2017 年 10 月 30 日
thank you

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

その他の回答 (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!