我在gui的m文件中用到了以下的读取多个图片的程序,运行后也没用问题!
files = dir('D:\APPLE\*.jpg');
[row col]=size(files);
for j=1:row
I=imread(files(j,1).name);
但是当我将这个通过mcc生成exe文件后就发生了以下错误,请各位高手帮忙解决一下!
??? Error using ==> imread at 315
File "1.a.jpg" does not exist.
Error in ==> AppleDefectSystem>pushbutton22_Callback at 428
Error in ==> gui_mainfcn at 95
Error in ==> AppleDefectSystem at 42
??? Error using ==> AppleDefectSystem('pushbutton22_Callback',gcbo,[],guidata(gcbo))
Error using ==> imread at 315
File "1.a.jpg" does not exist.