creating folders in matlab
1 view (last 30 days)
Show older comments
How can I create folders by name 1,2,3,4 in a directory
0 Comments
Answers (1)
Walter Roberson
on 22 Jan 2016
targetdirectory = 'ThePlaceToPutThem';
for K = 1 : 4
foldername = fullfile(targetdirectory, sprintf('%d', K));
mkdir(foldername);
end
0 Comments
See Also
Categories
Find more on Search Path in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!