joining a character variable and a numerical variable to call a filename within a loop
Ältere Kommentare anzeigen
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
Akzeptierte Antwort
Weitere Antworten (2)
Jan
am 24 Feb. 2011
2 Stimmen
See also the FAQ:
It is alway a good idea to look for an answer there before asking here.
james
am 24 Feb. 2011
0 Stimmen
2 Kommentare
Robert Cumming
am 24 Feb. 2011
why not? What error are you getting?
Post some code.
james
am 24 Feb. 2011
Kategorien
Mehr zu Loops and Conditional Statements finden Sie in Hilfe-Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!