creating folder in matlab
10 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
how can i create a folder in matlab which will store all my text files in it
0 commentaires
Réponses (2)
Chunru
le 14 Juil 2022
% create folder (in current folder)
folder = "mydir";
mkdir(folder);
% save data in a file in the folder
a = rand(3);
save(fullfile(folder, 'test.txt'), 'a', '-ascii');
% show the file
type mydir/test.txt
3 commentaires
Voir également
Catégories
En savoir plus sur Text Files dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!