simulink and gui across workspace
3 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
in simulinke model there is a "to workspace " assume its var is "sout" that i want this var "sout" identified by my gui program
0 commentaires
Réponse acceptée
TAB
le 2 Juil 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 commentaires
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Event Functions dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!