Clear Filters
Clear Filters

use S-function

2 views (last 30 days)
Cosmin Darab
Cosmin Darab on 23 Sep 2011
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

Accepted Answer

TAB
TAB on 23 Sep 2011
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 Comment
Cosmin Darab
Cosmin Darab on 3 Oct 2011
Thank you for your answer,
When using user defined functions it says that roots is not suported.

Sign in to comment.

More Answers (0)

Categories

Find more on Simulink Functions in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!