フィルターのクリア

programming simulink blocks

2 ビュー (過去 30 日間)
ryan webster
ryan webster 2011 年 3 月 6 日
How do I program my own systems/ blocks for simulink?

回答 (2 件)

Paulo Silva
Paulo Silva 2011 年 3 月 6 日

MarkB
MarkB 2011 年 3 月 7 日
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.

カテゴリ

Help Center および File ExchangeBlock and Blockset Authoring についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by