Creating a structure array containing names of external files
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
LINDO MTSWENI
el 1 de Mayo de 2019
Respondida: Bob Thompson
el 1 de Mayo de 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 comentarios
Respuesta aceptada
Bob Thompson
el 1 de Mayo de 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 comentarios
Más respuestas (0)
Ver también
Categorías
Más información sobre File Operations en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!