Sort cell array according to number of elements
Mostra commenti meno recenti
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]
Risposta accettata
Più risposte (1)
Mariam Osmann
il 7 Apr 2011
0 voti
1 Commento
Sean de Wolski
il 7 Apr 2011
Mariam, please accept Andrew's answer.
Categorie
Scopri di più su Shifting and Sorting Matrices in Centro assistenza e File Exchange
Prodotti
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!