Implementig user-define function in Simulink

Hi
I'd like to use m-file function (custom Kalman filter) in my Simulink model. Witch block of User-Defined functions is more suitable for implementation? Can I use Embedded MATLAB Function block in this case?

 採用された回答

Fangjun Jiang
Fangjun Jiang 2011 年 11 月 14 日

1 投票

Yes, you can use Embedded MATLAB function. But if your M-function is already done and you don't need to generate C code for it, you can use your M-function directly using the "Fcn" block or "MATLAB Fcn" block.

1 件のコメント

Kaustubha Govind
Kaustubha Govind 2011 年 11 月 14 日
In addition, you may interested in looking at a comparison of the various uder-defined blocks available: http://www.mathworks.com/help/toolbox/simulink/ug/bq3qcgr.html (Subsystem and C-MEX S-function don't apply to your case)

サインインしてコメントする。

その他の回答 (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