joining a character variable and a numerical variable to call a filename within a loop
Mostra commenti meno recenti
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
Risposta accettata
Più risposte (2)
Jan
il 24 Feb 2011
2 voti
See also the FAQ:
It is alway a good idea to look for an answer there before asking here.
james
il 24 Feb 2011
0 voti
2 Commenti
Robert Cumming
il 24 Feb 2011
why not? What error are you getting?
Post some code.
james
il 24 Feb 2011
Categorie
Scopri di più su Loops and Conditional Statements in Centro assistenza e File Exchange
Prodotti
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!