Grabbing all files in a folder
368 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Jason
el 7 de Abr. de 2011
Comentada: Jeong Dae Kim
el 1 de Ag. de 2021
Is there anyway in matlab to grab all the files in a folder that the user select? Kind of like the uigetfile() command but that only grab the file selected. I want a way where user can select the folder and matlab will grab all the files inside of that folder. Even better if matlab can grab particular files base on the name of those files.
0 comentarios
Respuesta aceptada
Más respuestas (1)
Robert Cumming
el 7 de Abr. de 2011
if you set use the following syntax you can select multiple files:
uigetfile('*.m', 'Select Multiple Files', 'MultiSelect', 'on' )
or you can use
uigetdir
to select a directory, then use the ls command to get a list of files in that directory.
0 comentarios
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!