anyway to transfer data from matlab workspace to appdesigner

175 views (last 30 days)
Yu Li
Yu Li on 21 Aug 2019
Commented: haobo zhang on 5 May 2022 at 15:13
Hi:
I want to develop an app based on the data in the workspace. is there anyway to do it like 'cftool'? i.e. once I open the app, the list of variable in workspace are available :
Capture.JPG
Thanks!
Yu

Answers (1)

Payas Bahade
Payas Bahade on 26 Aug 2019
  2 Comments
haobo zhang
haobo zhang on 5 May 2022 at 15:13
I've got one way, you can try:
variable_names = evalin('base','who');
It'll return a cell array of the variable names in the workspace, then you can load specific data like this:
first_data = evalin('base', variable_names{1});

Sign in to comment.

Community Treasure Hunt

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

Start Hunting!