Info
이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.
Problem regarding Simulink model & GUI interfacing
조회 수: 1 (최근 30일)
이전 댓글 표시
How can I interface a Simulink model to a GUI in MATLAB 2010a. I am using 'sim()' in command window & I am getting the result, but when I paste the same command inside a callback function of a push-button in GUI. There is no response. What should I do? Thank You.
댓글 수: 0
답변 (1개)
Walter Roberson
2016년 3월 29일
When sim() is called inside a function, the results are saved into the workspace of the function, and will disappear when the function returns. When sim() is called from the command line or from the menus, then the results are saved into the base workspace, where they will stay until cleared or overwritten.
댓글 수: 0
이 질문은 마감되었습니다.
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!