joining a character variable and a numerical variable to call a filename within a loop
显示 更早的评论
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
采纳的回答
更多回答(2 个)
Jan
2011-2-24
2 个投票
See also the FAQ:
It is alway a good idea to look for an answer there before asking here.
james
2011-2-24
0 个投票
类别
在 帮助中心 和 File Exchange 中查找有关 Loops and Conditional Statements 的更多信息
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!