Can i update the matlab workspace during simulation?

Hello,
With the 'to workspace' block i want to write values to the matlab workspace. Then i load in a value from workspace. But 'to workspace' block only can update the matlab workspace at the end of simulation. Is there any way that i can update the matlab workspace during simulation?

回答 (1 件)

Sachin Ganjare
Sachin Ganjare 2012 年 10 月 31 日

1 投票

4 件のコメント

Chihwei Ko
Chihwei Ko 2012 年 10 月 31 日
Hi Sachin,
Thank you for your help. For these links, it seems that i'll need to write an S-Function. I'll try it. Thank you very much.
Kaustubha Govind
Kaustubha Govind 2012 年 10 月 31 日
Another option is using event listeners. See Access Block Data During Simulation.
Chihwei Ko
Chihwei Ko 2012 年 11 月 2 日
Thanks Kaustubha.
Arun Badigannavar
Arun Badigannavar 2013 年 1 月 9 日
Have u got it Mr SAchin,am also looking for same,,but am unable to develop it

サインインしてコメントする。

カテゴリ

ヘルプ センター および File ExchangeSimulink についてさらに検索

製品

タグ

質問済み:

2012 年 10 月 31 日

Community Treasure Hunt

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

Start Hunting!

Translated by