sorting one field of struct
4 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
files=dir('*.dat');
i want to sort files.name of the files struct by file name
0 comentarios
Respuesta aceptada
Walter Roberson
el 30 de Mayo de 2012
[junk, idx] = sort({files.name});
sortedfiles = files(idx);
0 comentarios
Más respuestas (0)
Ver también
Categorías
Más información sobre Shifting and Sorting Matrices en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!