simulink and gui across workspace
조회 수: 2 (최근 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!