use S-function

2 次查看(过去 30 天)
Cosmin Darab
Cosmin Darab 2011-9-23
Hy, I have a script in matlab and need to put it in simulink, but i have dificulties using s-function Have an example? Thank you

采纳的回答

TAB
TAB 2011-9-23
You can use 'Embedded MATLAB Function' block in your model for embedding MATLAB code with simulink. This block is available at
Simulink Library browser > User defined functions > 'Embedded MATLAB Function'
For help type
doc 'Embedded MATLAB Function'
on command window.
  1 个评论
Cosmin Darab
Cosmin Darab 2011-10-3
Thank you for your answer,
When using user defined functions it says that roots is not suported.

请先登录,再进行评论。

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Simulink Functions 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by