creating folders in matlab

1 次查看(过去 30 天)
Tanmoyee Bhattacharya
How can I create folders by name 1,2,3,4 in a directory

回答(1 个)

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

类别

Help CenterFile Exchange 中查找有关 Search Path 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by