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 件のコメント

Artur
Artur 2014 年 2 月 10 日
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 日
Artur
Artur 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 ExchangeSimulink についてさらに検索

タグ

質問済み:

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