필터 지우기
필터 지우기

gui and work space data sharing

조회 수: 2 (최근 30일)
mohamed  al-asklany
mohamed al-asklany 2012년 7월 1일
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
mohamed al-asklany 2012년 7월 1일
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에서 Migrate GUIDE Apps에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by