Sort cell array according to number of elements
Afficher commentaires plus anciens
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]
Réponse acceptée
Plus de réponses (1)
Mariam Osmann
le 7 Avr 2011
0 votes
1 commentaire
Sean de Wolski
le 7 Avr 2011
Mariam, please accept Andrew's answer.
Catégories
En savoir plus sur Shifting and Sorting Matrices dans Centre d'aide et File Exchange
Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!