I want to ascend cell
Mostrar comentarios más antiguos
hey , I want to ascend the rows based on a specific columns in the cell array . here's an example
The input in work space is
cellmobility{1,1}
x 4
y 2
z 1
g 3
the output i seek in work space is
cellmobility{1,1}
z 1
y 2
g 3
x 4
Respuesta aceptada
Más respuestas (1)
Andrei Bobrov
el 18 de Jun. de 2012
c{1,1} = cellstr(sortrows(char(c{1,1}),3));
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!