use S-function

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

 Respuesta aceptada

TAB
TAB el 23 de Sept. de 2011

0 votos

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 comentario

Cosmin Darab
Cosmin Darab el 3 de Oct. de 2011
Thank you for your answer,
When using user defined functions it says that roots is not suported.

Iniciar sesión para comentar.

Más respuestas (0)

Etiquetas

Preguntada:

el 23 de Sept. de 2011

Community Treasure Hunt

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

Start Hunting!

Translated by