How to make static variable in Simulink
古いコメントを表示
I have several identical simulink models, where only the parameters vary:
Simulink block 1 uses the variables x.a{1}, x.b{1}, x.c{1} etc.
Simulink block 2 uses the variables x.1{2}, x.b{2}, x.c{2} etc
... up to Simulink block n using x.a{n} etc. The constants are used in gains, sums state space models etc.
How can i avoid hard coding the above numbers 1 through n in each and every block? I.e. i want Simulink block 1 to only contain the number 1 one time.
Hope this makes sense :)
Benjamin
採用された回答
その他の回答 (0 件)
カテゴリ
ヘルプ センター および File Exchange で Modeling についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!