anyway to transfer data from matlab workspace to appdesigner

221 ビュー (過去 30 日間)
Yu Li
Yu Li 2019 年 8 月 21 日
コメント済み: haobo zhang 2022 年 5 月 5 日
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

回答 (1 件)

Payas Bahade
Payas Bahade 2019 年 8 月 26 日
  2 件のコメント
haobo zhang
haobo zhang 2022 年 5 月 5 日
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});

サインインしてコメントする。

カテゴリ

Find more on Develop Apps Using App Designer in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by