I need help please.
Show older comments
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)
Accepted Answer
More Answers (0)
Categories
Find more on Environment and Settings 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!