simulink and gui across workspace

2 visualizzazioni (ultimi 30 giorni)
mohamed  al-asklany
mohamed al-asklany il 1 Lug 2012
in simulinke model there is a "to workspace " assume its var is "sout" that i want this var "sout" identified by my gui program

Risposta accettata

TAB
TAB il 2 Lug 2012
Simulink data from To Workspace block is always saved in Matlab base workspace. So your variable "sout" will appear in matlab base workspace after the simulation.
You can access this variable in you GUI program (or in any other) function using
data = evalin('base','sout');
Using this, values in "sout" from base workspace will be copied in variable "data".
  9 Commenti
TAB
TAB il 5 Lug 2012
What another thing you are running in your GUI ?
mohamed  al-asklany
mohamed al-asklany il 17 Lug 2013
antenna radar scope contain order pause(.05)

Accedi per commentare.

Più risposte (0)

Categorie

Scopri di più su Event Functions in Help Center e File Exchange

Prodotti

Community Treasure Hunt

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

Start Hunting!

Translated by