use variable name inside dlmwrite with respect to loop variable
3 ビュー (過去 30 日間)
古いコメントを表示
I have 10 files and I want to get output filename loop number .
I use this command to get output for a single file but how can I insert loop name inside file name:
dlmwrite('lag_data.txt',a1,'delimiter',' ')
I want this kind of output
for i=1:4
(commands)
dlmwrite('lag_data.txt',a1,'delimiter',' ')
end
output should be like this
lag_data_1.txt
lag_data_2.txt
lag_data_3.txt
lag_data_4.txt
0 件のコメント
採用された回答
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で String Parsing についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!