From "Matlab Function" block in Simulink to Workspace in Matlab

Hey, is there any function to move variables from that block to Workspace in Matlab? I don't want to use "to Workspace" block. I need to do this in this "Matlab Function" block.

답변 (1개)

Mischa Kim
Mischa Kim 2014년 2월 10일
편집: Mischa Kim 2014년 2월 10일

0 개 추천

Artur, are you referring to the simout block? That is typically the way to go. Other than that there are other options you can choose from to export data from Simulink.

댓글 수: 3

My simulation is going on all the time. Simout block is creating variable after the button "Stop Simulation" is pushed. Same with "To File". All hope in "Matlab Function" block.
Mischa Kim
Mischa Kim 2014년 2월 10일
편집: Mischa Kim 2014년 2월 10일
in some way I have access to data I need. But I must extract it out of Simulink, out of Matlab. All this in real-time. I was thinking about "Matlab Function" block because in it I can save variable with "Save" function. But my vars are not in workspace so I cannot save them.
If I only could extract them to workspace with real-time refreshing all would be great.

댓글을 달려면 로그인하십시오.

카테고리

도움말 센터File Exchange에서 Simulink에 대해 자세히 알아보기

태그

질문:

2014년 2월 10일

댓글:

2014년 2월 10일

Community Treasure Hunt

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

Start Hunting!

Translated by