From Matlab to Simulink (alternative to Embedded MATLAB Function)

1 次查看(过去 30 天)
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

回答(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 CenterFile Exchange 中查找有关 Simulink Coder 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by