sorting one field of struct
    6 Ansichten (letzte 30 Tage)
  
       Ältere Kommentare anzeigen
    
files=dir('*.dat');
i want to sort files.name of the files struct by file name
0 Kommentare
Akzeptierte Antwort
  Walter Roberson
      
      
 am 30 Mai 2012
        [junk, idx] = sort({files.name});
sortedfiles = files(idx);
0 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
				Mehr zu Structures finden Sie in Help Center und File Exchange
			
	Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!

