How to pass the value from GUIDE to app designer (local parameter to class def parameter)
조회 수: 2 (최근 30일)
이전 댓글 표시
Hi here
i have a question about how to pass the value to app designer.
example is:
in GUIDE (ui.m)
function ui_OpeningFcn(hObject, eventdata, handles, varargin)
handles.output = hObject;
a = 5;
ui_app_designer; % this is app designer file (ui_app_designer.mlapp)
call app designer(ui_app_designer.mlapp)
classdef ui_app_designer < matlab.apps.AppBase
% Properties that correspond to app components
properties (Access = public)
UIFigure matlab.ui.Figure
end
properties (Access = public)
Property % Description
a = ui.a; % this is wrong but how can i get the value a from ui.m ?
end
end
if you know, please tell me.
thank you very much.
댓글 수: 4
Mohammad Sami
2020년 3월 30일
Click App Input Arguments button in app designer. You will then get a pop up. Type comma separated list of variables that you need the app to accept.
답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Migrate GUIDE Apps에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!