directory created with num2str
古いコメントを表示
hi , I have created a folder using num2str.. but i can not save a file inside that directory as it shows error as "No such file or directory".
A=20; B=30; C=40;
xx=['A', num2str(A), 'B', num2str(B)] ;
mkdir(xx)
cfile= ['C', num2str(C)]
output2=[cfile,'.dat'];
save(['xx\', output2])
回答 (2 件)
madhan ravi
2018 年 11 月 19 日
0 投票
Try using sprintf()
2 件のコメント
Ribhu
2018 年 11 月 19 日
madhan ravi
2018 年 11 月 19 日
specify the path correctly inside mkdir()
カテゴリ
ヘルプ センター および File Exchange で File Operations についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!