I write a code for reading folders from folder.In one folder have 300 subfolder. when i read subfolder it read first folder and read 10 forlder and read 100th folder it skip the folder. Code is here please help me finding error.
main_folder = uigetdir( 'E:\Program Files\MATLAB\');PT=fullfile(main_folder);main_srcFiles = dir(PT);main_srcFiles(1:2)=[];for i=1:length(main_srcFiles) sub_folder=(main_srcFiles(i).name); Have mistake here.it can't read folder in sequence pt=strcat(PT,'\',sub_folder); Path=fullfile(pt); srcFiles = dir(Path)
Best Answer