Effacer les filtres
Effacer les filtres

anyway to transfer data from matlab workspace to appdesigner

102 vues (au cours des 30 derniers jours)
Yu Li
Yu Li le 21 Août 2019
Commenté : haobo zhang le 5 Mai 2022
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

Réponses (1)

Payas Bahade
Payas Bahade le 26 Août 2019
  2 commentaires
Yu Li
Yu Li le 26 Août 2019
Hi:
Thanks for your reply.
The 'evalin' function can transfer the known variables from workspace to app, but the issue I faced is that, I need to know variable names that exist in the workspace.
for example, in cftool, you can see that once I launch the 'cftool', the variable names that exist in workspace are available in the dropdown list. how does this step be conducted?
Thanks!
Yu
haobo zhang
haobo zhang le 5 Mai 2022
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});

Connectez-vous pour commenter.

Catégories

En savoir plus sur Loops and Conditional Statements dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by