Documentation

User-Defined Functions

Custom function blocks such as MATLAB Function, MATLAB System, Simulink Function, and Initialize Function

Blocks

Argument InportArgument input port for Simulink Function block
Argument OutportArgument output port for Simulink Function block
Event ListenerAdd event port to a subsystem block
FcnApply specified expression to input
Function CallerCall Simulink or exported Stateflow function
Initialize FunctionExecutes contents on a model initialize event
Interpreted MATLAB FunctionApply MATLAB function or expression to input
Level-2 MATLAB S-FunctionUse Level-2 MATLAB S-function in model
MATLAB FunctionInclude MATLAB code in models that generate embeddable C code
MATLAB SystemInclude System object in model
Reset FunctionExecutes contents on a model reset event
S-FunctionInclude S-function in model
S-Function BuilderCreate S-function from C code that you provide
Simulink FunctionFunction defined with Simulink blocks
State ReaderRead a block state
State WriterWrite to a block state
Terminate FunctionExecute contents on a model terminate event
Was this topic helpful?