How to use solve function in Embedded function block of simulink ?

I donit know use solve equation in Embedded function block of simulink.Because when i create syms vriable in Embedded function block of simulink,Matlab tell error.How do you solve this problem? Thank you.

 採用された回答

Kaustubha Govind
Kaustubha Govind 2011 年 5 月 16 日

0 投票

What is the exact error message that you receive? Note that solve (or any of the Symbolic Math Toolbox functions) is not amongst the functions supported in Embedded MATLAB. You need to use the eml.extrinsic (code.extrinsic starting in R2011a) directive if you'd like to use an unsupported function (the call is dispatched to the MATLAB engine since code cannot be generated for it).

その他の回答 (1 件)

Cocoh
Cocoh 2011 年 5 月 16 日

0 投票

Thank you Kaustubha Govind .Is there another method can i try? How to? (I used V.2010R)

1 件のコメント

Kaustubha Govind
Kaustubha Govind 2011 年 5 月 16 日
Using eml(coder).extrinsic is only available method - is there a reason this is not satisfactory?

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

カテゴリ

ヘルプ センター および File ExchangeSimulink についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by