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 日

0 投票

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 件)

カテゴリ

ヘルプ センター および File Exchange で Block and Blockset Authoring についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by