特定のフォルダへmatファイルを保存する方法
9 次查看(过去 30 天)
显示 更早的评论
以下のようなループ処理の中で繰り返し番号付きのmatファイルを作ったのですがこのmatファイル群を特定のフォルダに入れるにはどうすればいいでしょうか。
フォルダはすでに作ってあり、フォルダ名は「C」とします。
rootname = 'A_';
extension = '.mat';
for k=1:5
B(:,1) = 1+k;
B(:,2) = k-1;
data=B;
filename = [rootname, num2str(k), extension]; % ファイル名の作成
save(filename,'data',) % ファイルへの保存
end
0 个评论
回答(1 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 インストールとライセンスの紹介 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!