directory created with num2str
Mostra commenti meno recenti
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])
Risposte (2)
madhan ravi
il 19 Nov 2018
0 voti
Try using sprintf()
2 Commenti
Ribhu
il 19 Nov 2018
madhan ravi
il 19 Nov 2018
specify the path correctly inside mkdir()
Ribhu
il 20 Nov 2018
0 voti
Categorie
Scopri di più su File Operations in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!