I need help please.
Afficher commentaires plus anciens
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)
Réponse acceptée
Plus de réponses (0)
Catégories
En savoir plus sur Environment and Settings dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!