Changing variable from appdesigner in matlab script

4 次查看(过去 30 天)
Hello,
How can I send a value for a variable from appdesigner to the workspace which is then used in a matlab script?

采纳的回答

Eric Delgado
Eric Delgado 2022-10-5
You can use assignin to send the variable to Matlab base workspace.
% Suppose that you have a variable named "app.myVariable"
assignin('base', 'myVariable', app.myVariable)
openvar('myVariable')
  6 个评论
Eric Delgado
Eric Delgado 2022-10-21
Great to hear! Now that you are super happy with my support, you accept my answer, ok? :)

请先登录,再进行评论。

更多回答(0 个)

类别

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

标签

Community Treasure Hunt

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

Start Hunting!

Translated by