フィルターのクリア

Simulink load & save array during execution

3 ビュー (過去 30 日間)
Sara Hamdan
Sara Hamdan 2018 年 4 月 25 日
コメント済み: David Pasdeloup 2018 年 8 月 2 日
In Simulink - Matlab function, how can I read values from an array then edit the values and save them again in the same array (override), during the execution of the Simulink? (update the array every time step)
  1 件のコメント
David Pasdeloup
David Pasdeloup 2018 年 8 月 2 日
I had the same issue. My solution was to:
- Stop the simulation
- Save the state of the Simulink model with the SimState functionality
- Rewrite the array
- Continue the simulation from the SimState saved before.
The SimState functionality acts as if the simulation never stopped, but it appeared to me that simulation must be stopped to change the array.

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

回答 (0 件)

カテゴリ

Help Center および File ExchangeSimulink についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by