Creating a structure array containing names of external files
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
LINDO MTSWENI
am 1 Mai 2019
Beantwortet: Bob Thompson
am 1 Mai 2019
Good day , how can I create a function that will receive a structure array containing the names of the external files that will be read in separate field ?
2 Kommentare
Akzeptierte Antwort
Bob Thompson
am 1 Mai 2019
files = dir(path);
This will return a structure called 'files' which contains the names of all files in the path location (and other information). To call the specific file you want just do files(index).name.
0 Kommentare
Weitere Antworten (0)
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!