I need help please.
显示 更早的评论
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)
采纳的回答
更多回答(0 个)
类别
在 帮助中心 和 File Exchange 中查找有关 Environment and Settings 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!