User-Defined Functions

Blocks that support custom functions, such as Fcn and MATLAB Function

Blocks

Argument Inport Argument input port for Simulink Function block
Argument Outport Argument output port for Simulink Function block
Fcn Apply specified expression to input
Function Caller Call Simulink or Stateflow function
Interpreted MATLAB Function Apply MATLAB function or expression to input
Level-2 MATLAB S-Function Use Level-2 MATLAB S-function in model
MATLAB Function Include MATLAB code in models that generate embeddable C code
MATLAB System Include System object in model
S-Function Include S-function in model
S-Function Builder Create S-function from C code that you provide
Simulink Function Function definition used by Function Caller block or Stateflow chart
Was this topic helpful?