How to change Simulink S-Function Parameters with Matlab Command
이전 댓글 표시
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개)
Fangjun Jiang
2019년 1월 28일
편집: Fangjun Jiang
2019년 1월 28일
get_param(BlockHandle,'Parameters')
set_param(BlockHandle,'Parameters','abc')
카테고리
도움말 센터 및 File Exchange에서 Simulink Coder에 대해 자세히 알아보기
제품
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!