If A matrix is just like the following, how can I rearrange it to get B without any loop?
A=[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15]
B=[1 6 11
2 7 12
3 8 13
4 9 14
5 10 15]

 採用された回答

Azzi Abdelmalek
Azzi Abdelmalek 2016 年 7 月 11 日

0 投票

reshape(A,3,3)

1 件のコメント

meh alipoo
meh alipoo 2016 年 7 月 11 日
編集済み: meh alipoo 2016 年 7 月 11 日
reshape(A,5,3)

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

その他の回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangeFourier Analysis and Filtering についてさらに検索

製品

タグ

質問済み:

2016 年 7 月 11 日

編集済み:

2016 年 7 月 11 日

Community Treasure Hunt

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

Start Hunting!

Translated by