arrange an array(1xn) to (rxc)

1 回表示 (過去 30 日間)
Ugur Sahin
Ugur Sahin 2020 年 4 月 7 日
コメント済み: Ugur Sahin 2020 年 4 月 7 日
Hi guys,
I have a program this program sums 4 value and this program add sums of 4 value to a new set
This set exist 81 colons
My quastion is how can ı separete to create a matrice every 9 step so there are 9colons and 9rows in new matrice
Thanks.
  2 件のコメント
James Tursa
James Tursa 2020 年 4 月 7 日
Please provide a short example with smaller sizes so we know exactly what it is you are asking.
Ugur Sahin
Ugur Sahin 2020 年 4 月 7 日
m=1x81 to A=9x9

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

採用された回答

James Tursa
James Tursa 2020 年 4 月 7 日
編集済み: James Tursa 2020 年 4 月 7 日
Not sure how you want the output ordered. Maybe this
A = reshape(m,9,9);
or this
A = reshape(m,9,9).';
  1 件のコメント
Ugur Sahin
Ugur Sahin 2020 年 4 月 7 日
Yes it is 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!

Translated by