joining a character variable and a numerical variable to call a filename within a loop
Mostrar comentarios más antiguos
how do i join the variable n to the variable filename to get the name of a real file that i want to call in a loop?
example
real files called: file 1, file 2 etc..
filename='file';
n=1:5;
for
some action filename + n;
end
many thanks
James
Respuesta aceptada
Más respuestas (2)
Jan
el 24 de Feb. de 2011
2 votos
See also the FAQ:
It is alway a good idea to look for an answer there before asking here.
james
el 24 de Feb. de 2011
0 votos
2 comentarios
Robert Cumming
el 24 de Feb. de 2011
why not? What error are you getting?
Post some code.
james
el 24 de Feb. de 2011
Categorías
Más información sobre Loops and Conditional Statements en Centro de ayuda y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!