MATLAB Answers

How to use data from base workspace in app designer application

193 views (last 30 days)
Daan Decleer
Daan Decleer on 1 May 2017
Commented: Adam Danz on 11 Nov 2020
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.

Accepted Answer

xi on 1 May 2017
initialize your EditFields using evalin(), such as: app.EditField1.Value=evalin('base','myvar1'); app.EditField2.Value=evalin('base','myvar2'); ...
Adam Danz
Adam Danz on 11 Nov 2020
"It's not working" doesn't convey the problem and usually means that the user couldn't figure out how to implement the solution. What's not working? What did you try? What symptoms are you having that indicates there's a problem?

Sign in to comment.

More Answers (0)

Community Treasure Hunt

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

Start Hunting!

Translated by