How to pass gui output to workspace?

11 views (last 30 days)
Curious Mind
Curious Mind on 20 Jul 2020
Commented: Stephen23 on 23 Jul 2020
Hello, I am trying to develop a gui using matlab app designer. 1. How do I write the code such that the output of a push button appears in the workspace? 2. I used the property tool to share data across but for some reason this only works if the output is physically present in the workspace. The output is a structure called F. How do I correct this? I am using evalin(‘base’, ‘F’) in the property section. If I can find a way to make the output appear in the workspace then the app will work fine.
Thank you
  2 Comments

Sign in to comment.

Accepted Answer

Anirudh Singh
Anirudh Singh on 23 Jul 2020
You can use "assignin" function to store data in the workspace either 'base' or 'caller' depending upon your requirements.
For more information check the documentation link for "assignin" function: https://www.mathworks.com/help/matlab/ref/assignin.html

More Answers (0)

Products


Release

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by