Simulink Functions - MATLAB & Simulink (original) (raw)

Main Content

Define functions that are accessible from across the Simulink model hierarchy

You can use Simulink® functions to define functions that are accessible in the Simulink model hierarchy. A Simulink function calculates a set of outputs based on the provided inputs and the implemented behavior of the function. You can use Simulink functions to:

For more information, see Simulink Functions Overview.

Blocks

expand all

Simulink Function Define a function using Simulink blocks
Chart Implement control logic with finite state machine
Inport Create input port for subsystem or external input
Outport Create output port for subsystem or external output
Function Element Specify function to be called via exporting function port (Since R2022a)
Function Element Call Specify function call to be issued via invoking function port (Since R2022a)

Topics