Products & Services Solutions Academia Support User Community Company

Learn more about Simulink   

Custom Block Examples

Creating Custom Blocks from Masked Library Blocks

The Additional Math and Discrete Simulink library is a group of custom blocks created by extending the functionality of built-in Simulink blocks. The Additional Discrete library contains a number of masked blocks that extend the functionality of the standard Unit Delay block. See Working with Block Libraries for more general information on Simulink libraries.

Creating Custom Blocks from MATLAB Functions

The Simulink product provides a number of demonstrations that show how to incorporate MATLAB functions into a custom block.

Creating Custom Blocks from S-Functions

The Simulink model sfundemos.mdl contains various examples of M-file and C MEX-file S-functions. For more information on writing M-file S-functions, see Writing S-Functions in M. For more information on writing C MEX S-functions, see Writing S-Functions in C. For a list of available S-function demos, see S-Function Examples in Writing S-Functions.

  


Related Products & Applications

Learn more about Simulink through this collection of videos, articles, technical literature and the Getting Started with Simulink Guide.

 © 1984-2009- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS