Package app with multiple GUIs (GUIDE)

조회 수: 4 (최근 30일)
Patricia Haro
Patricia Haro 2019년 8월 8일
댓글: Patricia Haro 2019년 8월 13일
Recently I shared my first application in Mathworks that consists of a GUI that calls another GUI’s. When I have installed the app and tried the pushbuttons that call the other GUI’s, this error message appears: Undefined function or variable; and users who have downloaded it, reports the same error message.
I tried to put the other GUI’s in a “private” folder and change the search path, but the error message still appears.
I'm working with Matlab 2018b
Any help is greatly appreciated!
  댓글 수: 4
Adam
Adam 2019년 8월 8일
Presumably your error message tells you which 'function or variable' is undefined. Is it the GUI you are trying to launch or something else?
Patricia Haro
Patricia Haro 2019년 8월 9일
Yes, the message tells me the name of the GUI that I´m trying to launch, but that GUI was included throughe the dependency analysis.

댓글을 달려면 로그인하십시오.

답변 (1개)

Subhadeep Koley
Subhadeep Koley 2019년 8월 12일
Hi Patricia,
In the Callback of the push button paste only the name (without any extension) of the next GUI where you want to navigate (See example below).
function pushbutton1_Callback(hObject, eventdata, handles)
your_GUI;
end
Also, in the Application Compiler under the “Files required for your application to run” tab add all the necessary .m files required to run the application.
  댓글 수: 1
Patricia Haro
Patricia Haro 2019년 8월 13일
Hi Subhadeep,
Thanks for your answer.
That's exactly what I did when I used the package app tool in the Add-Ons section. But when I tried the installation file, the main GUI does not recognize the other scripts. This is the error message:
foto3.png

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Migrate GUIDE Apps에 대해 자세히 알아보기

제품


릴리스

R2018b

Community Treasure Hunt

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

Start Hunting!

Translated by