Create for a n*n matrix n files txt/
이전 댓글 표시
I have a big problem with a for loop. If for example I have a 5*5 matrix and for each row I would like to create 5 different .txt file how can i do? Of course with a for loop but how can I wrote on matlab each time to save the txt file with different name as for example namefile(i).txt?
채택된 답변
추가 답변 (2개)
Maurizio
2011년 10월 23일
0 개 추천
댓글 수: 1
the cyclist
2011년 10월 23일
ithFileName=['filename',num2str(i),'.txt'];
fopen(ithFileName,'w')
etc
카테고리
도움말 센터 및 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!