Can the MATLAB compiler compile a script that includes simulink functions?

Im working on a code that later on will need to be compiled to exe file. In that code Im using the function "dlinmod" to linearise a simulink block I also created.
Can I compile functions that use simulink blocks?

回答 (1 件)

Walter Roberson
Walter Roberson 2016 年 9 月 28 日
編集済み: Walter Roberson 2016 年 9 月 28 日

0 投票

No. Simulink cannot be compiled using MATLAB Compiler (but parts of it can be compiled using MATLAB Coder.) See http://www.mathworks.com/products/compiler/supported/compiler_support.html and http://www.mathworks.com/products/ineligible_programs/
The only products in the Simulink family that can be compiled with MATLAB Compiler are parts of SimBiology and Simulink 3D Animation.
Completed Simulink models can have code generation with Simulink Coder, or HDL Coder, or Embedded Coder. You would not be able to create new blocks dynamically with those, however.

1 件のコメント

Arthur Goldsipe
Arthur Goldsipe 2016 年 9 月 28 日
Minor clarification: SimBiology is not actually a product in the Simulink family. It shares many similarities, but they're completely independent products.

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

カテゴリ

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

質問済み:

2016 年 9 月 28 日

編集済み:

2016 年 9 月 28 日

Community Treasure Hunt

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

Start Hunting!

Translated by