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!