Sorting a Cell Array
이전 댓글 표시
Hi,
Sorry if this has been asked / answered many times or very simple etc. etc!
If I have a cell array say Array = {B C A;1 3 2; D E F}
Is it possible to sort the first row in order, so its A B C, with the second and third rows changing corresponding to to this initial sort?
Final answer being {A B C;2 1 3;F D E}
Thanks in advance Matthew
채택된 답변
추가 답변 (3개)
Andreas Goser
2011년 12월 23일
0 개 추천
It is not clear to me what your cell array really looks like, as your example is not valid, but the SORTROWS command should work.
카테고리
도움말 센터 및 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!