From Matlab to Simulink (alternative to Embedded MATLAB Function)

22 ビュー (過去 30 日間)
cyberdyne
cyberdyne 2011 年 2 月 25 日
Hi,
There is a way to take out m-file elaborations from MATLAB editor and put them in Simulink model (and so to simulink blocks) instead of make an Embedded MATLAB Function ?
Thanks
  3 件のコメント
cyberdyne
cyberdyne 2011 年 2 月 25 日
Is Level-2 M-file S-Function for matlab code? I thought it must be C-language code.
Kaustubha Govind
Kaustubha Govind 2011 年 2 月 25 日
S-functions can be written in MATLAB, C, C++ or FORTRAN languages.

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

回答 (1 件)

Kaustubha Govind
Kaustubha Govind 2011 年 2 月 25 日
You can use the MATLAB Fcn or Level-2 MATLAB S-function blocks.
However, if you want to generate code:
  • MATLAB Fcn blocks are not supported
  • Level-2 MATLAB S-functions require you to provide a TLC file
  • Embedded MATLAB blocks are supported for code-generation, as long as you use supported language constructs.

カテゴリ

Help Center および File ExchangeSimulink Coder についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by