How to use data from base workspace in app designer application

조회 수: 89 (최근 30일)
Daan Decleer
Daan Decleer 2017년 5월 1일
댓글: Mark Sahlin 2022년 4월 18일
Hello
In my app designer program I have several Numeric Edit Fields, I would like to set them to the already declared variables before in the base workspace when my application opens.
Is there a way I can load the existing Variable and put them in the already existing EditField?
Thanks already, I look out to your answers.

채택된 답변

xi
xi 2017년 5월 1일
initialize your EditFields using evalin(), such as: app.EditField1.Value=evalin('base','myvar1'); app.EditField2.Value=evalin('base','myvar2'); ...
  댓글 수: 8
Mark Sahlin
Mark Sahlin 2022년 4월 18일
using app designer it would not allow me access to edit in code view
Mark Sahlin
Mark Sahlin 2022년 4월 18일
the Code View for the initial EditField does not allow me to add a line to change the value via an evalin.

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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Software Development Tools에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by