필터 지우기
필터 지우기

Appdesigner: Using a app's method from another app

조회 수: 27 (최근 30일)
Yannis Papakonstantinou
Yannis Papakonstantinou 2017년 11월 5일
답변: Randy Acheson 2017년 11월 8일
Is it possible that an app's method can be called from another app? If yes how? Perhaps if it is added in the section: methods (Access = public)?

채택된 답변

Randy Acheson
Randy Acheson 2017년 11월 8일
This can be done one of several ways.
1. You can load one app into another app as a variable, and access its methods that way. You can see an example of loading an app into another app in this example:
https://www.mathworks.com/help/matlab/creating_guis/creating-multiwindow-apps-in-app-designer.html
2. You can share application data using the 'setappdata' and 'getappdata' functions. You can refer to the documentation for how to use these functions:
https://www.mathworks.com/help/matlab/ref/setappdata.html
3. If neither of these suffice, you can always save a method handle to the base workspace with the 'assignin' function and use it from there. You can refer to the documentation for this function here:
https://www.mathworks.com/help/matlab/ref/assignin.html

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Develop Apps Using App Designer에 대해 자세히 알아보기

제품

Community Treasure Hunt

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

Start Hunting!

Translated by