Changing variable from appdesigner in matlab script

2 views (last 30 days)
How can I send a value for a variable from appdesigner to the workspace which is then used in a matlab script?

Accepted Answer

Eric Delgado
Eric Delgado on 5 Oct 2022
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)
Eric Delgado
Eric Delgado on 21 Oct 2022
Great to hear! Now that you are super happy with my support, you accept my answer, ok? :)

Sign in to comment.

More Answers (0)


Find more on Introduction to Installation and Licensing 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!