hello, im using the following code :
folderName = 'C:\Users\Shruthi\Desktop\project\A data\SegmentedCharacters'; Imgs = dir(fullfile(folderName, '*.jpg'));C={Imgs.name};cx=natsortfiles(C)q=1;for blah blahImg = imread(fullfile(folderName, cx(q).name)); % Read image
q=q+1;blah blahend
but it gives me this error
Improper index matrix reference.Error in Untitled5 (line 142) Img = imread(fullfile(folderName, cx(q).name)); % Read image
could anyone tell me how i can rectify this? Thank you!
Best Answer