Problems designing gui using GUIDE

1 次查看(过去 30 天)
Hey all,
I'm trying to design a GUI using GUIDE. So far i have a title (made up of 5 static texts - different fontsizes and some bold etc) and a panel with 7 static text titles above 7 textboxes but when saving it, my .m file errors out with the following long long list:
Attempt to execute SCRIPT EPM_GUI as a function:
C:\Users\Paul\Documents\MATLAB\EPM_GUI.m
Error in
matlab.graphics.internal.figfile.FigFile/read>@(hObject,eventdata)EPM_GUI('edit5_CreateFcn',hObject,eventdata,guidata(hObject))
Attempt to execute SCRIPT EPM_GUI as a function:
C:\Users\Paul\Documents\MATLAB\EPM_GUI.m
Error in
matlab.graphics.internal.figfile.FigFile/read>@(hObject,eventdata)EPM_GUI('edit4_CreateFcn',hObject,eventdata,guidata(hObject))
Attempt to execute SCRIPT EPM_GUI as a function:
C:\Users\Paul\Documents\MATLAB\EPM_GUI.m
Error in
matlab.graphics.internal.figfile.FigFile/read>@(hObject,eventdata)EPM_GUI('edit3_CreateFcn',hObject,eventdata,guidata(hObject))
Attempt to execute SCRIPT EPM_GUI as a function:
C:\Users\Paul\Documents\MATLAB\EPM_GUI.m
Error in
matlab.graphics.internal.figfile.FigFile/read>@(hObject,eventdata)EPM_GUI('edit2_CreateFcn',hObject,eventdata,guidata(hObject))
Attempt to execute SCRIPT EPM_GUI as a function:
C:\Users\Paul\Documents\MATLAB\EPM_GUI.m
Error in
matlab.graphics.internal.figfile.FigFile/read>@(hObject,eventdata)EPM_GUI('edit1_CreateFcn',hObject,eventdata,guidata(hObject))
java.lang.RuntimeException: Invalid or deleted object.
at com.mathworks.jmi.bean.UDDObject.get_from_Matlab(UDDObject.java:752)
at com.mathworks.jmi.bean.UDDObject.getPropertyValue(UDDObject.java:611)
at com.mathworks.toolbox.matlab.guide.HGControl.getPropertyValueForCompatibility(HGControl.java:249)
at com.mathworks.toolbox.matlab.guide.HGControl.getUIControlForUDDObject(HGControl.java:113)
at com.mathworks.toolbox.matlab.guide.HGControl.getControlForUDDObject(HGControl.java:77)
at com.mathworks.toolbox.matlab.guide.HGControl.getDisplayIconForControl(HGControl.java:136)
at com.mathworks.toolbox.matlab.guide.objectbrowser.ObjectNodeUtils.getObjectIcon(ObjectNodeUtils.java:106)
at com.mathworks.toolbox.matlab.guide.objectbrowser.ObjectView$ObjectViewWorker.runOnMatlabThread(ObjectView.java:626)
at com.mathworks.jmi.MatlabWorker$2.run(MatlabWorker.java:79)
at com.mathworks.jmi.NativeMatlab.dispatchMTRequests(NativeMatlab.java:475)
java.lang.RuntimeException: Invalid or deleted object.
at com.mathworks.jmi.bean.UDDObject.get_from_Matlab(UDDObject.java:752)
at com.mathworks.jmi.bean.UDDObject.getPropertyValue(UDDObject.java:611)
at com.mathworks.toolbox.matlab.guide.HGControl.getPropertyValueForCompatibility(HGControl.java:249)
at com.mathworks.toolbox.matlab.guide.HGControl.getUIControlForUDDObject(HGControl.java:113)
at com.mathworks.toolbox.matlab.guide.HGControl.getControlForUDDObject(HGControl.java:77)
at com.mathworks.toolbox.matlab.guide.HGControl.getDisplayIconForControl(HGControl.java:136)
at com.mathworks.toolbox.matlab.guide.objectbrowser.ObjectNodeUtils.getObjectIcon(ObjectNodeUtils.java:106)
at com.mathworks.toolbox.matlab.guide.objectbrowser.ObjectView$ObjectViewWorker.runOnMatlabThread(ObjectView.java:626)
at com.mathworks.jmi.MatlabWorker$2.run(MatlabWorker.java:79)
at com.mathworks.jmi.NativeMatlab.dispatchMTRequests(NativeMatlab.java:475)
java.lang.RuntimeException: Invalid or deleted object.
at com.mathworks.jmi.bean.UDDObject.get_from_Matlab(UDDObject.java:752)
at com.mathworks.jmi.bean.UDDObject.getPropertyValue(UDDObject.java:611)
at com.mathworks.toolbox.matlab.guide.HGControl.getPropertyValueForCompatibility(HGControl.java:249)
at com.mathworks.toolbox.matlab.guide.HGControl.getUIControlForUDDObject(HGControl.java:113)
at com.mathworks.toolbox.matlab.guide.HGControl.getControlForUDDObject(HGControl.java:77)
at com.mathworks.toolbox.matlab.guide.HGControl.getDisplayIconForControl(HGControl.java:136)
at com.mathworks.toolbox.matlab.guide.objectbrowser.ObjectNodeUtils.getObjectIcon(ObjectNodeUtils.java:106)
at com.mathworks.toolbox.matlab.guide.objectbrowser.ObjectView$ObjectViewWorker.runOnMatlabThread(ObjectView.java:626)
at com.mathworks.jmi.MatlabWorker$2.run(MatlabWorker.java:79)
at com.mathworks.jmi.NativeMatlab.dispatchMTRequests(NativeMatlab.java:475)
Any ideas what could be causing these errors?
Thanks,
Paul..

回答(2 个)

Image Analyst
Image Analyst 2015-11-17
You must have put a line of code in there out of place, like at the beginning. Attach your m-file, or at least post the first few lines of it. How else can we diagnose it?

Robin Cuzco
Robin Cuzco 2022-9-29
Hi.
Just start the program like administrator :-)

类别

Help CenterFile Exchange 中查找有关 Migrate GUIDE Apps 的更多信息

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by