simulink and gui across workspace
1 次查看(过去 30 天)
显示 更早的评论
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 个评论
采纳的回答
TAB
2012-7-2
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 个评论
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Event Functions 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!