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)

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Fourier 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