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
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.
editor bar, app input argument
App Input Arguments Dialog
Lin Leo
Lin Leo 2020년 3월 30일
Wow
Thank you very much.
i success to pass the value from guide to app designer!

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

답변 (0개)

카테고리

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