# Blocks

 1-D Lookup Table Approximate one-dimensional function 2-D Lookup Table Approximate two-dimensional function
 Abs Output absolute value of input Action Port Implement Action subsystems used in if and switch control flow statements Algebraic Constraint Constrain input signal 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
 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 bus signal from input signals Bus Selector Select signals from incoming bus Bus to Vector Convert virtual bus to vector
 Callback Button Execute MATLAB code based on user input Chart Implement control logic with finite state machine Check Box Select parameter or variable value 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 Combinatorial Logic Implement truth table Combo Box Select parameter value from drop-down menu 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 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 virtual 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 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 Display signal value during simulation 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 Port RAM System, Simple Dual Port RAM System, Single Port RAM System RAM blocks based on the hdl.RAM system object with ability to provide initial value Dual Rate Dual Port RAM Dual Port RAM that supports two rates
 Edit Enter new value for parameter Enable Add enable port to subsystem or model Enabled and Triggered Subsystem Subsystem whose execution is enabled and triggered by external input Enabled Subsystem 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 a subsystem block 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 Float Typecast Typecast a floating-point type to an unsigned integer or vice versa Floating Scope Display signals generated during simulation FMU Include Functional Mockup Unit (FMU) in model For Each Process elements or subarrays of a mask parameter or input signal independently For Each Subsystem Subsystem that repeats execution on each element or subarray of input signal and concatenates results For Iterator Repeatedly execute contents of subsystem at current time step until iteration variable exceeds specified iteration limit For Iterator Subsystem Subsystem that repeats execution during a 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 exported Stateflow function Function-Call Feedback Latch Break feedback loop involving data signals between function-call blocks Function-Call Generator Provide function-call signal to control execution of a subsystem or model Function-Call Split Provide junction for splitting function-call signal Function-Call Subsystem Subsystem whose execution is triggered by external function call input
 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 Subsystem whose execution is triggered by If block In Bus Element Select bus element or entire bus that is connected to subsystem input port 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 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 Tune parameter value with dial
 Lamp Display color reflecting 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 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 Multiply-Accumulate Perform a multiply-accumulate operation on the inputs Multiply-Add Multiply-add combined operation Multiport Switch Choose between multiple block inputs MultiStateImage Display image reflecting input value Mux Combine input signals of same data type and numeric type into virtual vector
 n-D Lookup Table Approximate N-dimensional function
 Out Bus Element Output signals from a subsystem as a virtual bus 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 parameter when button is pressed
 Quantizer Discretize input at specified interval Quarter Gauge Display input value on quadrant scale
 Radio Button Select parameter value 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 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 Subsystem whose block 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 Toggle parameter between two values Rotary Switch Switch parameter to set values on dial 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 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 Editor Display, create, edit, and switch interchangeable scenarios Signal Generator Generate various waveforms Signal Specification Specify desired dimensions, sample time, data type, numeric type, and other attributes of signal Simple Dual Port RAM Dual port RAM with single output port Simulink Function Function defined with Simulink blocks 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 Single Port RAM Single port RAM Slider Tune parameter value with sliding scale Slider Gain Vary scalar gain using slider Slider Switch Toggle parameter between two values 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 Group blocks to create model hierarchy Sum 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 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 Toggle parameter between two values 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 Add trigger port to subsystem or model Trigger-Based Linearization Generate linear models in base workspace when triggered Triggered Subsystem 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 Delay Enabled Resettable Synchronous Delay input signal by one sample period when external Enable signal is true and external Reset signal is false Unit Delay Enabled Synchronous Delay input signal by one sample period when external Enable signal is true Unit Delay Resettable Synchronous Delay input signal by one sample period when external Reset signal is false 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 Variant Sink Route amongst multiple outputs using variants Variant Source Route amongst multiple inputs using variants Variant Subsystem Template subsystem containing Subsystem blocks as variant choices 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 Repeat execution of a subsystem while a logical condition signal is true While Iterator Subsystem Subsystem that repeats execution during a 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