creating folders in matlab

1 visualizzazione (ultimi 30 giorni)
Tanmoyee Bhattacharya
Tanmoyee Bhattacharya il 22 Gen 2016
Risposto: Walter Roberson il 22 Gen 2016
How can I create folders by name 1,2,3,4 in a directory

Risposte (1)

Walter Roberson
Walter Roberson il 22 Gen 2016
targetdirectory = 'ThePlaceToPutThem';
for K = 1 : 4
foldername = fullfile(targetdirectory, sprintf('%d', K));
mkdir(foldername);
end

Categorie

Scopri di più su Search Path in Help Center e File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by