Change of saving folder with each iteration
2 ビュー (過去 30 日間)
古いコメントを表示
I want to set path where to save a file. But this saving function is in loop and name of saving variable is changing every iteration.
for k....
for l......
filename = [ 'delta',num2str(l) ,num2str(k), '.mat'];
save(filename,'delta')
end
end
and i want to change name of folder where to save also with every iteration.
filepath=['c:\....\' int2str(l) '\'];
Thanks for help!!
0 件のコメント
採用された回答
Walter Roberson
2013 年 4 月 22 日
Change the
save(filename,'delta')
to
save(fullfile(filepath, filename), 'delta');
0 件のコメント
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Environment and Settings についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!