Creating a structure array containing names of external files
1 visualizzazione (ultimi 30 giorni)
Mostra commenti meno recenti
LINDO MTSWENI
il 1 Mag 2019
Risposto: Bob Thompson
il 1 Mag 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 Commenti
Risposta accettata
Bob Thompson
il 1 Mag 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 Commenti
Più risposte (0)
Vedere anche
Categorie
Scopri di più su File Operations in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!