Create for a n*n matrix n files txt/
1 回表示 (過去 30 日間)
古いコメントを表示
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?
0 件のコメント
採用された回答
the cyclist
2011 年 10 月 23 日
Within the loop, you can construct the file names like this:
['filename',num2str(i),'.txt']
0 件のコメント
その他の回答 (2 件)
参考
カテゴリ
Help Center および File Exchange で Data Type Conversion についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!