I have C s-function, want to use the same C s-function in muiltiple places in a model with different parameters. but when run the model I get same outputs from C s-function with different parameters. if I change the name of the C s-function, they work as intended. is there a way to make a C s-function take different parameter without changing name ?
Thanks,
Henry Liu

回答(1 个)

Archit Dhanani
Archit Dhanani 2019-8-12

0 个投票

You can take a look at the example:
sfcndemo_csparam
Also, you can take a look at the doc:

类别

帮助中心File Exchange 中查找有关 Simulink Coder 的更多信息

产品

版本

R2017a

标签

Community Treasure Hunt

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

Start Hunting!

Translated by