系统:Windows XP SP2
软件版本:MATLAB R2008a
前几天学习MATH的GUI视频,跟着做了学生成绩查询系统,当时运行没有什么问题,一切正常。昨天对电脑用超级兔子进行清理系统,今天打开MATLAB后就无法打开GUI了。
重新启动MATLAB,改变到当时做的那个目录(已经加入到搜索路径)之后,右击学生成绩管理系统,选择“open”之后,命令窗口出现下面提示:
??? Error using ==> subsindex
Function 'subsindex' is not defined for values of class 'function_handle'.
Error in ==> cellstr at 28
c{i} = deblank(s(i,:));
Error in ==> errordlg at 47
ErrorString = cellstr(ErrorStringIn);
Error in ==> uiopen at 216
errordlg(lasterr);
C:\Documents and Settings\Administrator\桌面\1.bmp
后来想通过先启动GUI的小图标,然后在打开成绩管理系统,但是命令窗口又出现了下面的提示:
??? Error using ==> subsindex
Function 'subsindex' is not defined for values of class 'function_handle'.
Error in ==> dialog at 85
hDialog = figure('BackingStore' ,backstore , ...
Error in ==> guidetemplate at 25
hDialog = dialog('Name', title,'visible','off','position',[0, 0, size.width, size.height]);
Error in ==> guide at 69
guidetemplate;
??? Error using ==> subsindex
Function 'subsindex' is not defined for values of class 'function_handle'.
Error in ==> cellstr at 28
c{i} = deblank(s(i,:));
Error in ==> errordlg at 47
ErrorString = cellstr(ErrorStringIn);
Error in ==> guidefunc>showErrorDialog at 3781
h = errordlg(message, title);
Error in ==> guidefunc at 152
showErrorDialog('Unhandled internal error in guidefunc');
com.mathworks.jmi.MatlabException: Error using ==> subsindex
Function 'subsindex' is not defined for values of class 'function_handle'.
at com.mathworks.jmi.NativeMatlab.SendMatlabMessage(Native Method)
at com.mathworks.jmi.NativeMatlab.sendMatlabMessage(NativeMatlab.java:211)
at com.mathworks.jmi.MatlabLooper.sendMatlabMessage(MatlabLooper.java:121)
at com.mathworks.jmi.Matlab.mtFevalConsoleOutput(Matlab.java:1465)
at com.mathworks.jmi.MatlabWorker.feval(MatlabWorker.java:182)
at com.mathworks.jmi.MatlabWorker.feval(MatlabWorker.java:159)
at com.mathworks.toolbox.matlab.guide.utils.LayoutWorker.runOnMatlabThread(LayoutWorker.java:51)
at com.mathworks.jmi.MatlabWorker$2.run(MatlabWorker.java:73)
at com.mathworks.jmi.NativeMatlab.dispatchMTRequests(NativeMatlab.java:352)
C:\Documents and Settings\Administrator\桌面\2.bmp
后来重新装了下MATLAB R2008a,问题还是没有解决。
不知道有哪位仁兄知道解决方法?
[本帖最后由 edifiers2008 于 2009-3-31 16:14 编辑]