MATLAB: Create a new folder using matlab.

create

How can I create a new folder to save the outputs in matlab? Is there any certain function for it?
Thank you

Best Answer

Yes. mkdir()
if ~exist(folderName, 'dir')
mkdir(folderName);
end