How to change Simulink S-Function Parameters with Matlab Command
1 回表示 (過去 30 日間)
古いコメントを表示
Hi, I have a Simulink model with a S-Function which I would like to change it's prameters from my Matlab code before running the Simulink. I would appreciate it if someone could help me with this.
Thanks,
The image shows the S-Function block parameteres and my parameters are: Bodymass, Wheelmass, Suspring, and WheelSpring.
![1.png](https://www.mathworks.com/matlabcentral/answers/uploaded_files/201837/1.png)
0 件のコメント
回答 (1 件)
Fangjun Jiang
2019 年 1 月 28 日
編集済み: Fangjun Jiang
2019 年 1 月 28 日
get_param(BlockHandle,'Parameters')
set_param(BlockHandle,'Parameters','abc')
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Simulink Functions についてさらに検索
製品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!