Sort cell array according to number of elements
이전 댓글 표시
A= [-0.054;-0.43;0.022] [-0.43;-0.18] [0.02;0.002;-0.202;-0.41]
Before applying cell2mat I want to reorder the array in ascending order according to the number of elements so NewA= [-0.43;-0.18] [-0.054;-0.43;0.022] [0.02;0.002;-0.202;-0.41]
채택된 답변
추가 답변 (1개)
Mariam Osmann
2011년 4월 7일
0 개 추천
댓글 수: 1
Sean de Wolski
2011년 4월 7일
Mariam, please accept Andrew's answer.
카테고리
도움말 센터 및 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!