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 投票
2 件のコメント
Robert Cumming
2011 年 2 月 24 日
why not? What error are you getting?
Post some code.
james
2011 年 2 月 24 日
カテゴリ
ヘルプ センター および 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!