# Blocks

 1-D Lookup Table Approximate one-dimensional function 2-D Lookup Table Approximate two-dimensional function Trigger Add trigger port to model or subsystem
 Abs Output absolute value of input Action Port Implement Action subsystems used in if and switch control flow statements Add Add or subtract inputs Algebraic Constraint Constrain input signal to zero Argument Inport Argument input port for Simulink Function block Argument Outport Argument output port for Simulink Function block Assertion Check whether signal is zero Assignment Assign values to specified elements of signal Atomic Subsystem Represent system within another system
 Backlash Model behavior of system with play Band-Limited White Noise Introduce white noise into continuous system Bias Add bias to input Bit Clear Set specified bit of stored integer to zero Bit Concat Concatenates up to 128 input words into single output Bit Reduce AND, OR, or XOR bit reduction on all input signal bits to single bit Bit Rotate Rotate input signal by bit positions Bit Set Set specified bit of stored integer to one Bit Shift Logical or arithmetic shift of input signal Bit Slice Return field of consecutive bits from input signal Bitwise Operator Specified bitwise operation on inputs Block Support Table View data type support for Simulink blocks Bus Assignment Replace specified bus elements Bus Creator Create signal bus Bus Selector Select signals from incoming bus Bus to Vector Convert virtual bus to vector
 Chart Implement control logic with finite state machine Check Discrete Gradient Check that absolute value of difference between successive samples of discrete signal is less than upper bound Check Dynamic Gap Check that gap of possibly varying width occurs in range of signal's amplitudes Check Dynamic Lower Bound Check that one signal is always less than another signal Check Dynamic Range Check that signal falls inside range of amplitudes that varies from time step to time step Check Dynamic Upper Bound Check that one signal is always greater than another signal Check Input Resolution Check that input signal has specified resolution Check Static Gap Check that gap exists in signal's range of amplitudes Check Static Lower Bound Check that signal is greater than (or optionally equal to) static lower bound Check Static Range Check that signal falls inside fixed range of amplitudes Check Static Upper Bound Check that signal is less than (or optionally equal to) static upper bound Chirp Signal Generate sine wave with increasing frequency Clock Display and provide simulation time CodeReuse Subsystem Represent system within another system Combinatorial Logic Implement truth table Compare To Constant Determine how signal compares to specified constant Compare To Zero Determine how signal compares to zero Complex to Magnitude-Angle Compute magnitude and/or phase angle of complex signal Complex to Real-Imag Output real and imaginary parts of complex input signal Concatenate Concatenate input signals of same data type to create contiguous output signal Configurable Subsystem Represent any block selected from user-specified library of blocks Constant Generate constant value Cosine Implement fixed-point sine or cosine wave using lookup table approach that exploits quarter wave symmetry Cosine HDL Optimized Implement fixed-point cosine wave optimized for HDL code generation Coulomb and Viscous Friction Model discontinuity at zero, with linear gain elsewhere Counter Free-Running Count up and overflow back to zero after reaching maximum value for specified number of bits Counter Limited Count up and wrap back to zero after outputting specified upper limit
 Dashboard Scope Trace signals during simulation Data Store Memory Define data store Data Store Read Read data from data store Data Store Write Write data to data store Data Type Conversion Convert input signal to specified data type Data Type Conversion Inherited Convert from one data type to another using inherited data type and scaling Data Type Duplicate Force all inputs to same data type Data Type Propagation Set data type and scaling of propagated signal based on information from reference signals Data Type Scaling Strip Remove scaling and map to built in integer Dead Zone Provide region of zero output Dead Zone Dynamic Set inputs within bounds to zero Decrement Real World Decrease real world value of signal by one Decrement Stored Integer Decrease stored integer value of signal by one Decrement Time To Zero Decrease real-world value of signal by sample time, but only to zero Decrement To Zero Decrease real-world value of signal by one, but only to zero Delay Delay input signal by fixed or variable sample periods Demux Extract and output elements of vector signal Derivative Output time derivative of input Deserializer1D Convert scalar stream or smaller vectors to vector signal Detect Change Detect change in signal value Detect Decrease Detect decrease in signal value Detect Fall Negative Detect falling edge when signal value decreases to strictly negative value, and its previous value was nonnegative Detect Fall Nonpositive Detect falling edge when signal value decreases to nonpositive value, and its previous value was strictly positive Detect Increase Detect increase in signal value Detect Rise Nonnegative Detect rising edge when signal value increases to nonnegative value, and its previous value was strictly negative Detect Rise Positive Detect rising edge when signal value increases to strictly positive value, and its previous value was nonpositive Difference Calculate change in signal over one time step Digital Clock Output simulation time at specified sampling interval Direct Lookup Table (n-D) Index into N-dimensional table to retrieve element, column, or 2-D matrix Discrete Derivative Compute discrete-time derivative Discrete Filter Model Infinite Impulse Response (IIR) filters Discrete FIR Filter Model FIR filters Discrete PID Controller Simulate continuous- or discrete-time PID controllers Discrete PID Controller (2 DOF) Simulate continuous- or discrete-time two-degree-of-freedom PID controllers Discrete State-Space Implement discrete state-space system Discrete Transfer Fcn Implement discrete transfer function Discrete Zero-Pole Model system defined by zeros and poles of discrete transfer function Discrete-Time Integrator Perform discrete-time integration or accumulation of signal Display Show value of input Divide Divide one input by another DocBlock Create text that documents model and save text with model Dot Product Generate dot product of two vectors Dual Port RAM Dual port RAM with two output ports Dual Rate Dual Port RAM Dual Port RAM that supports two rates
 Enable Add enabling port to system Enabled and Triggered Subsystem Represent subsystem whose execution is enabled and triggered by external input Enabled Subsystem Represent subsystem whose execution is enabled by external input Enabled Synchronous Subsystem Represent enabled subsystem that has synchronous reset and enable behavior Enumerated Constant Generate enumerated constant value Environment Controller Create branches of block diagram that apply only to simulation or only to code generation Event Listener Add event port to subsystem Extract Bits Output selection of contiguous bits from input signal
 Fcn Apply specified expression to input Find Find nonzero elements in array First-Order Hold Implement first-order sample-and-hold Fixed-Point State-Space Implement discrete-time state space Floating Scope Display signals generated during simulation For Each Enable blocks inside For Each Subsystem to process elements or subarrays of a mask parameter or input signal independently For Each Subsystem Repeatedly perform algorithm on each element or subarray of input signal and concatenate results For Iterator Repeatedly execute contents of subsystem at current time step until iteration variable exceeds specified iteration limit For Iterator Subsystem Represent subsystem that executes repeatedly during simulation time step From Accept input from Goto block From File Load data from MAT-file From Spreadsheet Read data from spreadsheet From Workspace Load signal data from workspace Function Caller Call Simulink or Stateflow function Function-Call Feedback Latch Break feedback loop involving data signals between function-call blocks Function-Call Generator Execute function-call subsystem specified number of times at specified rate Function-Call Split Provide junction for splitting function-call signal Function-Call Subsystem Represent subsystem that can be invoked as function by another block
 Gain Multiply input by constant Gauge Display input value on circular scale Goto Pass block input to From blocks Goto Tag Visibility Define scope of Goto block tag Ground Ground unconnected input port
 Half Gauge Display input value on semicircular scale HDL Counter Free-running or count-limited hardware counter HDL FIFO Stores sequence of input samples in first in, first out (FIFO) register HDL Reciprocal Calculate reciprocal with Newton-Raphson approximation method Hit Crossing Detect crossing point
 IC Set initial value of signal If Model if-else control flow If Action Subsystem Represent subsystem whose execution is triggered by If block Increment Real World Increase real world value of signal by one Increment Stored Integer Increase stored integer value of signal by one Index Vector Switch output between different inputs based on value of first input Initialize Function Executes contents on a model initialize event Inport Create input port for subsystem or external input Integrator Integrate signal Integrator Limited Integrate signal Interpolation Using Prelookup Use precalculated index and fraction values to accelerate approximation of N-dimensional function Interpreted MATLAB Function Apply MATLAB function or expression to input Interval Test Determine if signal is in specified interval Interval Test Dynamic Determine if signal is in specified interval
 Knob Set value on dial to tune parameters or variables
 Lamp Display color that reflects input value Level-2 MATLAB S-Function Use Level-2 MATLAB S-function in model Linear Gauge Display input value on linear scale Logical Operator Perform specified logical operation on input Lookup Table Dynamic Approximate one-dimensional function using dynamic table
 Magnitude-Angle to Complex Convert magnitude and/or a phase angle signal to complex signal Manual Switch Switch between two inputs Manual Variant Sink Switch amongst multiple variant choices at output Manual Variant Source Switch amongst multiple variant choices at input Math Function Perform mathematical function MATLAB Function Include MATLAB code in models that generate embeddable C code MATLAB System Include System object in model Matrix Concatenate Concatenate input signals of same data type to create contiguous output signal Memory Output input from previous time step Merge Combine multiple signals into single signal MinMax Output minimum or maximum input value MinMax Running Resettable Determine minimum or maximum of signal over time Model Include multiple model implementations as block in another model Model Info Display model properties and text in model Model Variants Include multiple model implementations as block in another model Model Variants Include multiple model implementations as block in another model Multiply-Add Multiply-add combined operation Multiport Switch Choose between multiple block inputs MultiStateImage Display an image that reflects an input value Mux Combine several input signals into vector
 n-D Lookup Table Approximate N-dimensional function Nonvirtual Subsystem Represent system within another system
 Outport Create output port for subsystem or external output
 Permute Dimensions Rearrange dimensions of multidimensional array dimensions PID Controller Simulate continuous- or discrete-time PID controllers PID Controller (2 DOF) Simulate continuous- or discrete-time two-degree-of-freedom PID controllers Polynomial Perform evaluation of polynomial coefficients on input values Prelookup Compute index and fraction for Interpolation Using Prelookup block Probe Output signal attributes, including width, dimensionality, sample time, and complex signal flag Product Multiply and divide scalars and nonscalars or multiply and invert matrices Product of Elements Copy or invert one scalar input, or collapse one nonscalar input Pulse Generator Generate square wave pulses at regular intervals Push Button Set value of tunable parameter or variable by holding button
 Quantizer Discretize input at specified interval Quarter Gauge Display input value on ninety degree scale
 Ramp Generate constantly increasing or decreasing signal Random Number Generate normally distributed random numbers Rate Limiter Limit rate of change of signal Rate Limiter Dynamic Limit rising and falling rates of signal Rate Transition Handle transfer of data between blocks operating at different rates Real-Imag to Complex Convert real and/or imaginary inputs to complex signal Reciprocal Sqrt Calculate square root, signed square root, or reciprocal of square root Relational Operator Perform specified relational operation on inputs Relay Switch output between two constants Repeating Sequence Generate arbitrarily shaped periodic signal Repeating Sequence Interpolated Output discrete-time sequence and repeat, interpolating between data points Repeating Sequence Stair Output and repeat discrete time sequence Reset Add reset port to subsystem Reset Function Executes contents on a model reset event Resettable Delay Delay input signal by variable sample period and reset with external signal Resettable Subsystem Represent subsystem whose states reset with external trigger Resettable Synchronous Subsystem Represent resettable subsystem that has synchronous reset and enable behavior Reshape Change dimensionality of signal Rocker Switch Set on/off values to tune parameters or variables Rotary Switch Set value on dial switch to tune parameters or variables Rounding Function Apply rounding function to signal
 S-Function Include S-function in model S-Function Builder Create S-function from C code that you provide Saturation Limit range of signal Saturation Dynamic Bound range of input Scope Display signals generated during simulation Second-Order Integrator Integrate input signal twice Second-Order Integrator Limited Integrate input signal twice Selector Select input elements from vector, matrix, or multidimensional signal Serializer1D Convert vector signal to scalar or smaller vectors Shift Arithmetic Shift bits or binary point of signal Sign Indicate sign of input Signal Builder Create and generate interchangeable groups of signals whose waveforms are piecewise linear Signal Conversion Convert signal to new type without altering signal values Signal Generator Generate various waveforms Signal Specification Specify desired dimensions, sample time, data type, numeric type, and other attributes of signal Signed Sqrt Calculate square root, signed square root, or reciprocal of square root Simple Dual Port RAM Dual port RAM with single output port Simulink Function Function defined with Simulink blocks Sine Implement fixed-point sine or cosine wave using lookup table approach that exploits quarter wave symmetry Sine HDL Optimized Implement fixed-point sine wave by using lookup table approach that exploits quarter wave symmetry Sine Wave Generate sine wave, using simulation time as time source Sine Wave Function Generate sine wave, using external signal as time source Sine, Cosine Implement fixed-point sine or cosine wave using lookup table approach that exploits quarter wave symmetry Single Port RAM Single port RAM Slider Set value on sliding scale to tune parameters or variables Slider Gain Vary scalar gain using slider Slider Switch Set on/off values to tune parameters or variables Sqrt Calculate square root, signed square root, or reciprocal of square root Squeeze Remove singleton dimensions from multidimensional signal State Control Specify synchronous reset and enable behavior for blocks with state State Reader Read a block state State Writer Write to a block state State-Space Implement linear state-space system Step Generate step function Stop Simulation Stop simulation when input is nonzero Subsystem Represent system within another system Subtract Add or subtract inputs Sum Add or subtract inputs Sum of Elements Add or subtract inputs Switch Switch output between first input and third input based on value of second input Switch Case Implement C-like switch control flow statement Switch Case Action Subsystem Represent subsystem whose execution is triggered by Switch Case block Synchronous Subsystem Represent subsystem that has synchronous reset and enable behavior
 Tapped Delay Delay scalar signal multiple sample periods and output all delayed versions Terminate Function Execute contents on a model terminate event Terminator Terminate unconnected output port Timed-Based Linearization Generate linear models in base workspace at specific times To File Write data to file To Workspace Write data to workspace Toggle Switch Set on/off values to tune parameters or variables Transfer Fcn Model linear system by transfer function Transfer Fcn Direct Form II Implement Direct Form II realization of transfer function Transfer Fcn Direct Form II Time Varying Implement time varying Direct Form II realization of transfer function Transfer Fcn First Order Implement discrete-time first order transfer function Transfer Fcn Lead or Lag Implement discrete-time lead or lag compensator Transfer Fcn Real Zero Implement discrete-time transfer function that has real zero and no pole Transport Delay Delay input by given amount of time Trigger-Based Linearization Generate linear models in base workspace when triggered Triggered Subsystem Represent subsystem whose execution is triggered by external input Trigonometric Function Specified trigonometric function on input
 Unary Minus Negate input Uniform Random Number Generate uniformly distributed random numbers Unit Conversion Convert units Unit Delay Delay signal one sample period Unit System Configuration Configure units Unresolved Link Indicate unresolved reference to library block
 Variable Integer Delay Delay input signal by variable sample period Variable Time Delay Delay input by variable amount of time Variable Transport Delay Delay input by variable amount of time Variant Sink Route amongst multiple outputs using variants Variant Source Route amongst multiple inputs using variants Variant Subsystem Represent multiple implementations of a system via a subsystem Vector Concatenate Concatenate input signals of same data type to create contiguous output signal
 Waveform Generator Output waveforms using signal notations Weighted Sample Time Support calculations involving sample time Weighted Sample Time Math Support calculations involving sample time While Iterator Repeatedly execute contents of subsystem at current time step while condition is satisfied While Iterator Subsystem Represent subsystem that executes repeatedly while condition is satisfied during simulation time step Width Output width of input vector Wrap To Zero Set output to zero if input is above threshold
 XY Graph Display X-Y plot of signals using MATLAB figure window
 Zero-Order Hold Implement zero-order hold of one sample period Zero-Pole Model system by zero-pole-gain transfer function