Filter löschen
Filter löschen

Changing variable from appdesigner in matlab script

4 Ansichten (letzte 30 Tage)
Furkan Karaman
Furkan Karaman am 5 Okt. 2022
Kommentiert: Eric Delgado am 21 Okt. 2022
Hello,
How can I send a value for a variable from appdesigner to the workspace which is then used in a matlab script?

Akzeptierte Antwort

Eric Delgado
Eric Delgado am 5 Okt. 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)
openvar('myVariable')
  6 Kommentare
Furkan Karaman
Furkan Karaman am 19 Okt. 2022
Thank you so much Eric! Now it works
Eric Delgado
Eric Delgado am 21 Okt. 2022
Great to hear! Now that you are super happy with my support, you accept my answer, ok? :)

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Mehr zu Manage Products finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by