I want to create different folders with name simulation_Data1,simulation_Data2,simulation_Data3 and so on and each folder I want to have a subfolder called real_Data in every simulation_Data Folder. Please how do i go about this.
maximum_Folder = 10;ROOT_FOLDER = 'Simulation_Data';for n = 1:MAX_FOLDER_NUMBER folder_name = [ROOT_FOLDER,sprintf('%d',n)]; mkdir([Name_Project_folder \'folder_name'\'Real_Data']) if not(exist(folder_name,'dir')) mkdir(folder_name) endend
Best Answer