How to create and name several excel files in a loop?
8 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Jamal
el 24 de Sept. de 2015
Comentada: Jamal
el 25 de Sept. de 2015
Hi,
I need to save outputs of my code into excel files. As I need to do it for about 120 cases and may need to repeat it later, I was wondering how I can do this in a loop over the 120 cases saving the result for each case in a seperate excel file. I know that xlswrite creates file, but don't know how to automate it.
Any help is appreciated Jamal
0 comentarios
Respuesta aceptada
Thorsten
el 24 de Sept. de 2015
Just create a new filename in each loop and write to this file:
filename = sprintf('data%03d.xls', i);
4 comentarios
Más respuestas (1)
Ver también
Categorías
Más información sobre Manage Products 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!