Sort cell array according to number of elements
Mostrar comentarios más antiguos
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]
Respuesta aceptada
Más respuestas (1)
Mariam Osmann
el 7 de Abr. de 2011
0 votos
1 comentario
Sean de Wolski
el 7 de Abr. de 2011
Mariam, please accept Andrew's answer.
Categorías
Más información sobre Shifting and Sorting Matrices en Centro de ayuda y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!