Effacer les filtres
Effacer les filtres

Sharing Variables between app and matlab workspace?

6 vues (au cours des 30 derniers jours)
Farid
Farid le 15 Août 2022
Commenté : Farid le 17 Août 2022
Hey community,
I have developed an app with the app designer, I am wondering if there's any way to preview and manipulate the variables generated by the app in matlab's main space.
Thanks in advance
  4 commentaires
Walter Roberson
Walter Roberson le 16 Août 2022
My debugging work-around for situations like that is commonly to global a name at the command line, and assign the desired value to the name. Doing so effectively inserts the name into the visible workspace even if it was a "static" workspace (a function that had an "end" matching its "function" line, which is a situation where you cannot just assign to workspace variables in the debugger.)
Farid
Farid le 17 Août 2022
Thank you Walter.

Connectez-vous pour commenter.

Réponse acceptée

Bruno Luong
Bruno Luong le 16 Août 2022
Put this statement after you generate your data in the callback
mydata = ...
assignin('base', 'mydata')

Plus de réponses (0)

Catégories

En savoir plus sur Develop Apps Using App Designer dans Help Center et File Exchange

Produits


Version

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by