Sharing Variables between app and matlab workspace?

21 次查看(过去 30 天)
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 个评论
Walter Roberson
Walter Roberson 2022-8-16
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.)

请先登录,再进行评论。

采纳的回答

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

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Develop Apps Using App Designer 的更多信息

产品


版本

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by