Pleas need help , I use Parfor to run the code in parallel but I got "Index exceeds matrix diamensions"
when I run the code with for it runs normally.
Rootpath=('............');flist1=dir(fullfile(Rootpath));parfor i=3: size (flist1,1) inputpath=strcat(Rootpath,'/',flist1(i).name,'/'); outpath=strcat('./Output/',flist1(i).name,'/'); if ~isdir(outpath) mkdir(outpath); end Read_main(inputpath,outpath)end
Best Answer