initializing simulink parameters from simulink

1 回表示 (過去 30 日間)
mado
mado 2013 年 4 月 20 日
i have simulink model and it has different know parameters which i should load it every time to workspace from matlab , is there any way to load those parameters file from simulink ?
  2 件のコメント
Azzi Abdelmalek
Azzi Abdelmalek 2013 年 4 月 20 日
What do you mean?
mado
mado 2013 年 4 月 20 日
i have simulink model and it has parameters like coil and capacitor i want to load their values when i start simulink without need to go to load the file into workspace for example instal a button in simulink to push it to load them

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

回答 (2 件)

Azzi Abdelmalek
Azzi Abdelmalek 2013 年 4 月 20 日
You can use annotations
  2 件のコメント
mado
mado 2013 年 4 月 20 日
where to find annotation in simulink , i didn't get it yet
Azzi Abdelmalek
Azzi Abdelmalek 2013 年 4 月 20 日
In your simulink model, point your mouse on unoccupied area then write a text (for example data). Select this text then right click and choose annotations properties

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


Kaustubha Govind
Kaustubha Govind 2013 年 4 月 22 日
This is typically done in the PostLoadFcn callback of the model as described on this blog post.

カテゴリ

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

タグ

製品

Community Treasure Hunt

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

Start Hunting!

Translated by