필터 지우기
필터 지우기

Problems designing gui using GUIDE

조회 수: 1 (최근 30일)
Edmund Paul Malinowski
Edmund Paul Malinowski 2015년 11월 17일
답변: Robin Cuzco 2022년 9월 29일
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