programming simulink blocks

답변 (2개)

Mark
Mark 2011년 3월 7일

0 개 추천

There are two main methods: Embedded MATLAB blocks and S-functions. Embedded MATLAB blocks essentially allow you to define your simulation step behavior in MATLAB code and (with few exceptions) generate code from them if you are using Real-Time Workshop.
S-functions come in two flavors: Level-2 M-file S-functions and C-MEX S-functions. Level-2 M-file S-functions are written in MATLAB, and provide more access to simulation events than Embedded MATLAB (such as derivatives and initialization). C-MEX S-functions are written in C and give you pretty much complete control over everything the block does.

카테고리

도움말 센터File Exchange에서 Simulink Coder에 대해 자세히 알아보기

질문:

2011년 3월 6일

Community Treasure Hunt

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

Start Hunting!

Translated by