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.

0 个评论
回答(1 个)
Fangjun Jiang
2019-1-28
编辑:Fangjun Jiang
2019-1-28
get_param(BlockHandle,'Parameters')
set_param(BlockHandle,'Parameters','abc')
0 个评论
另请参阅
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!