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]

 Akzeptierte Antwort

Azzi Abdelmalek
Azzi Abdelmalek am 11 Jul. 2016

0 Stimmen

reshape(A,3,3)

Weitere Antworten (0)

Kategorien

Mehr zu Fourier Analysis and Filtering finden Sie in Hilfe-Center und File Exchange

Produkte

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by