gui and work space data sharing

1 次查看(过去 30 天)
how to attache data from work space to gui
  2 个评论
Image Analyst
Image Analyst 2012-7-1
You do know that there can be several workspaces, right? The base workspace, and then each function will have it's own local workspace.
mohamed  al-asklany
in simulinke model there is a "to workspace " assume its var is "sout" that i want this var "sout" identified by my gui program

请先登录,再进行评论。

采纳的回答

Luffy
Luffy 2012-7-6
If you want to access data that is in base workspace in your gui functions,
use
v = evalin('base','name of variable u want to access');
% the variable's data is now stored in v.
If u want to save data of ur gui work space to base,use
assignin('base','name of variable u want to save','value of variable');

更多回答(1 个)

Image Analyst
Image Analyst 2012-7-1

类别

Help CenterFile Exchange 中查找有关 MATLAB Report Generator 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by