link multiple data files
3 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Obviously new to MATLAB.. I have written a script & would like to run the script on multiple files without inputting a new file name each time. Thanks
0 comentarios
Respuestas (2)
Laura Proctor
el 31 de Mayo de 2011
If all of the files live in the same directory, you can use the LS command. See below for a couple examples:
a = ls;
a = ls('C:\class\*.m');
b = cellstr(a);
Then, run through your script with each file name contained in the cell array.
2 comentarios
Ver también
Categorías
Más información sobre Variables en Help Center y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!