Load many files in matlab
2 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Hi, I'm new to matlab and my english is not the best. I have a special data format called .sir which has picture data and header info in it. To load the data i already have a given function called loadsir.m:
[image, head, descrip, iaopt]=loadsir(filename)
To load a data into matlab i only have to write e.g. filename = 'queh-a-NAf00-001-004.sir'. Thats working great. But i have about 1000 of this datas in my directory. Somebody could give me a code to read them all in so i dont have to change the filename manually for every data?
Thanks a lot
0 Kommentare
Akzeptierte Antwort
Azzi Abdelmalek
am 15 Mai 2013
yourfolder='E:\answer\*.sir';
repertoir=dir(yourfolder);
files={repertoir.name}
0 Kommentare
Weitere Antworten (3)
Siehe auch
Kategorien
Mehr zu File Operations 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!