Rearranging Elements in a Matrix Help

So my mentor has given me the task of rearranging a matrix. She wants me to change it form this:
[7 1 5
8 3 10
4 9 12
2 6 11]
to this:
[1 2 3
4 5 6
7 8 9
10 11 12]
Thanks (Also don't just put the script in please explain how it works.

 채택된 답변

Azzi Abdelmalek
Azzi Abdelmalek 2013년 7월 11일

0 개 추천

Use a sort function and reshape function

댓글 수: 1

Ronald
Ronald 2013년 7월 11일
편집: Ronald 2013년 7월 11일
I APPRECIATE IT. JUST STARTED YESTERDAY SO THIS IS A LITTLE OVER MY HEAD.
Edit: It was discreet so it forced me to read what the functions do. Great Answer!

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

도움말 센터 및 File Exchange에서 Shifting and Sorting Matrices에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by