sorting one field of struct

files=dir('*.dat');
i want to sort files.name of the files struct by file name

 Risposta accettata

Walter Roberson
Walter Roberson il 30 Mag 2012
[junk, idx] = sort({files.name});
sortedfiles = files(idx);

Più risposte (0)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by