Block Reference


Commonly UsedCommonly used blocks
ContinuousDefine continuous states
DiscontinuitiesDefine discontinuous states
DiscreteDefine discrete states
Logic and Bit OperationsPerform logic and bit operations
Lookup TablesSupport lookup tables
Math OperationsPerform math operations
Model VerificationPerform model verification
Model-Wide UtilitiesSupport model-wide operations
Ports & SubsystemsSupport ports and subsystems
Signal AttributesSupport signal attributes
Signal RoutingSupport signal routing
SinksReceive output from other blocks
SourcesInput to other blocks
User-Defined FunctionsSupport custom functions
Additional Math & DiscreteProvide additional math and discrete support

Commonly Used

Bus CreatorCreate signal bus
Bus SelectorSelect signals from incoming bus
ConstantGenerate constant value
Data Type ConversionConvert input signal to specified data type
DemuxExtract and output elements of vector signal
Discrete-Time IntegratorPerform discrete-time integration or accumulation of signal
GainMultiply input by constant
GroundGround unconnected input port
InportCreate input port for subsystem or external input
IntegratorIntegrate signal
Logical OperatorPerform specified logical operation on input
MuxCombine several input signals into vector
OutportCreate output port for subsystem or external output
ProductMultiply and divide scalars and nonscalars or multiply and invert matrices
Relational OperatorPerform specified relational operation on inputs
SaturationLimit range of signal
Scope and Floating ScopeDisplay signals generated during simulation
Subsystem, Atomic Subsystem, CodeReuse SubsystemRepresent system within another system
Sum, Add, Subtract, Sum of ElementsAdd or subtract inputs
SwitchSwitch output between first input and third input based on value of second input
TerminatorTerminate unconnected output port
Unit DelayDelay signal one sample period

Continuous

DerivativeOutput time derivative of input
IntegratorIntegrate signal
State-SpaceImplement linear state-space system
Transfer FcnModel linear system by transfer function
Transport DelayDelay input by given amount of time
Variable Time Delay, Variable Transport DelayDelay input by variable amount of time
Zero-PoleModel system by zero-pole-gain transfer function

Discontinuities

BacklashModel behavior of system with play
Coulomb and Viscous FrictionModel discontinuity at zero, with linear gain elsewhere
Dead ZoneProvide region of zero output
Dead Zone DynamicSet inputs within bounds to zero
Hit CrossingDetect crossing point
QuantizerDiscretize input at specified interval
Rate LimiterLimit rate of change of signal
Rate Limiter DynamicLimit rising and falling rates of signal
RelaySwitch output between two constants
SaturationLimit range of signal
Saturation DynamicBound range of input
Wrap To ZeroSet output to zero if input is above threshold

Discrete

DifferenceCalculate change in signal over one time step
Discrete DerivativeCompute discrete time derivative
Discrete FilterModel IIR and FIR filters
Discrete FIR FilterModel FIR filters
Discrete State-SpaceImplement discrete state-space system
Discrete Transfer FcnImplement discrete transfer function
Discrete Zero-PoleModel system defined by zeros and poles of discrete transfer function
Discrete-Time IntegratorPerform discrete-time integration or accumulation of signal
First-Order HoldImplement first-order sample-and-hold
Integer DelayDelay signal N sample periods
MemoryOutput input from previous time step
Tapped DelayDelay scalar signal multiple sample periods and output all delayed versions
Transfer Fcn First OrderImplement discrete-time first order transfer function
Transfer Fcn Lead or LagImplement discrete-time lead or lag compensator
Transfer Fcn Real ZeroImplement discrete-time transfer function that has real zero and no pole
Unit DelayDelay signal one sample period
Weighted Moving Average (Obsolete)Implement weighted moving average (obsolete)
Zero-Order HoldImplement zero-order hold of one sample period

Logic and Bit Operations

Bit ClearSet specified bit of stored integer to zero
Bit SetSet specified bit of stored integer to one
Bitwise OperatorPerform specified bitwise operation on inputs
Combinatorial LogicImplement truth table
Compare To ConstantDetermine how signal compares to specified constant
Compare To ZeroDetermine how signal compares to zero
Detect ChangeDetect change in signal's value
Detect DecreaseDetect decrease in signal's value
Detect Fall NegativeDetect falling edge when signal's value decreases to strictly negative value, and its previous value was nonnegative
Detect Fall NonpositiveDetect falling edge when signal's value decreases to nonpositive value, and its previous value was strictly positive
Detect IncreaseDetect increase in signal's value
Detect Rise NonnegativeDetect rising edge when signal's value increases to nonnegative value, and its previous value was strictly negative
Detect Rise PositiveDetect rising edge when signal's value increases to strictly positive value, and its previous value was nonpositive
Extract BitsOutput selection of contiguous bits from input signal
Interval TestDetermine if signal is in specified interval
Interval Test DynamicDetermine if signal is in specified interval
Logical OperatorPerform specified logical operation on input
Relational OperatorPerform specified relational operation on inputs
Shift ArithmeticShift bits and/or binary point of signal

Lookup Tables

Direct Lookup Table (n-D)Index into N-dimensional table to retrieve element, column, or 2-D matrix
Interpolation Using PrelookupUse output of Prelookup block to accelerate approximation of N-dimensional function
Lookup TableApproximate one-dimensional function
Lookup Table (2-D)Approximate two-dimensional function
Lookup Table (n-D)Approximate N-dimensional function
Lookup Table DynamicApproximate one-dimensional function using dynamically specified table
PrelookupCompute index and fraction for Interpolation Using Prelookup block
Sine, CosineImplement sine and/or cosine wave in fixed point using lookup table approach that exploits quarter wave symmetry

Math Operations

AbsOutput absolute value of input
Algebraic ConstraintConstrain input signal to zero
AssignmentAssign values to specified elements of signal
BiasAdd bias to input
Complex to Magnitude-AngleCompute magnitude and/or phase angle of complex signal
Complex to Real-ImagOutput real and imaginary parts of complex input signal
DivideDivide one input by another
Dot ProductGenerate dot product of two vectors
GainMultiply input by constant
Magnitude-Angle to ComplexConvert magnitude and/or a phase angle signal to complex signal
Math FunctionPerform mathematical function
Matrix Concatenate, Vector ConcatenateConcatenate input signals of same data type to create contiguous output signal
MinMaxOutput minimum or maximum input value
MinMax Running ResettableDetermine minimum or maximum of signal over time
Permute DimensionsRearrange dimensions of multidimensional array dimensions
PolynomialPerform evaluation of polynomial coefficients on input values
ProductMultiply and divide scalars and nonscalars or multiply and invert matrices
Product of ElementsCopy or invert one scalar input, or collapse one nonscalar input
Real-Imag to ComplexConvert real and/or imaginary inputs to complex signal
ReshapeChange dimensionality of signal
Rounding FunctionApply rounding function to signal
SignIndicate sign of input
Sine Wave FunctionGenerate sine wave, using external signal as time source
Slider GainVary scalar gain using slider
SqueezeRemove singleton dimensions from multidimensional signal
Sum, Add, Subtract, Sum of ElementsAdd or subtract inputs
Trigonometric FunctionPerform trigonometric function
Unary MinusNegate input
Weighted Sample Time MathSupport calculations involving sample time

Model Verification

AssertionCheck whether signal is nonzero
Check Discrete GradientCheck that absolute value of difference between successive samples of discrete signal is less than upper bound
Check Dynamic GapCheck that gap of possibly varying width occurs in range of signal's amplitudes
Check Dynamic Lower BoundCheck that one signal is always less than another signal
Check Dynamic RangeCheck that signal falls inside range of amplitudes that varies from time step to time step
Check Dynamic Upper BoundCheck that one signal is always greater than another signal
Check Input ResolutionCheck that input signal has specified resolution
Check Static GapCheck that gap exists in signal's range of amplitudes
Check Static Lower BoundCheck that signal is greater than (or optionally equal to) static lower bound
Check Static RangeCheck that signal falls inside fixed range of amplitudes
Check Static Upper BoundCheck that signal is less than (or optionally equal to) static upper bound

Model-Wide Utilities

Block Support TableView data type support for Simulink blocks
DocBlockCreate text that documents model and save text with model
Model InfoDisplay revision control information in model
Time-Based LinearizationGenerate linear models in base workspace at specific times
Trigger-Based LinearizationGenerate linear models in base workspace when triggered

Ports & Subsystems

Action PortImplement Action subsystems used by if and switch control flow statements in Simulink software.
Configurable SubsystemRepresent any block selected from user-specified library of blocks
EnableAdd enabling port to subsystem
Enabled and Triggered SubsystemRepresent subsystem whose execution is enabled and triggered by external input
Enabled SubsystemRepresent subsystem whose execution is enabled by external input
For Iterator SubsystemRepresent subsystem that executes repeatedly during simulation time step
Function-Call GeneratorExecute function-call subsystem specified number of times at specified rate
Function-Call SubsystemRepresent subsystem that can be invoked as function by another block
IfModel if-else control flow
If Action SubsystemRepresent subsystem whose execution is triggered by If block
InportCreate input port for subsystem or external input
ModelInclude model as block in another model
OutportCreate output port for subsystem or external output
Subsystem, Atomic Subsystem, CodeReuse SubsystemRepresent system within another system
Switch CaseImplement C-like switch control flow statement
Switch Case Action SubsystemRepresent subsystem whose execution is triggered by Switch Case block
TriggerAdd trigger port to subsystem or function-call model
Triggered SubsystemRepresent subsystem whose execution is triggered by external input
While Iterator SubsystemRepresent subsystem that executes repeatedly while condition is satisfied during simulation time step

Signal Attributes

Bus to VectorConvert virtual bus to vector
Data Type ConversionConvert input signal to specified data type
Data Type Conversion InheritedConvert from one data type to another using inherited data type and scaling
Data Type DuplicateForce all inputs to same data type
Data Type PropagationSet data type and scaling of propagated signal based on information from reference signals
Data Type Scaling StripRemove scaling and map to built in integer
ICSet initial value of signal
ProbeOutput signal's attributes, including width, dimensionality, sample time, and/or complex signal flag
Rate TransitionHandle transfer of data between blocks operating at different rates
Signal ConversionConvert signal to new type without altering signal values
Signal SpecificationSpecify desired dimensions, sample time, data type, numeric type, and other attributes of signal
Weighted Sample TimeSupport calculations involving sample time
WidthOutput width of input vector

Signal Routing

Bus AssignmentReplace specified bus elements
Bus CreatorCreate signal bus
Bus SelectorSelect signals from incoming bus
Data Store MemoryDefine data store
Data Store ReadRead data from data store
Data Store WriteWrite data to data store
DemuxExtract and output elements of vector signal
Environment ControllerCreate branches of block diagram that apply only to simulation or only to code generation
FromAccept input from Goto block
GotoPass block input to From blocks
Goto Tag VisibilityDefine scope of Goto block tag
Index VectorSwitch output between different inputs based on value of first input
Manual SwitchSwitch between two inputs
MergeCombine multiple signals into single signal
Multiport SwitchChoose between multiple block inputs
MuxCombine several input signals into vector
SelectorSelect input elements from vector, matrix, or multidimensional signal
SwitchSwitch output between first input and third input based on value of second input

Sinks

DisplayShow value of input
OutportCreate output port for subsystem or external output
Scope and Floating ScopeDisplay signals generated during simulation
Stop SimulationStop simulation when input is nonzero
TerminatorTerminate unconnected output port
To FileWrite data to file
To WorkspaceWrite data to MATLAB workspace
XY Graph Display X-Y plot of signals using MATLAB figure window

Sources

Band-Limited White NoiseIntroduce white noise into continuous system
Chirp SignalGenerate sine wave with increasing frequency
ClockDisplay and provide simulation time
ConstantGenerate constant value
Counter Free-RunningCount up and overflow back to zero after maximum value possible is reached for specified number of bits
Counter LimitedCount up and wrap back to zero after outputting specified upper limit
Digital ClockOutput simulation time at specified sampling interval
From FileRead data from MAT-file
From WorkspaceRead data from workspace
GroundGround unconnected input port
InportCreate input port for subsystem or external input
Pulse GeneratorGenerate square wave pulses at regular intervals
RampGenerate constantly increasing or decreasing signal
Random NumberGenerate normally distributed random numbers
Repeating SequenceGenerate arbitrarily shaped periodic signal
Repeating Sequence InterpolatedOutput discrete-time sequence and repeat, interpolating between data points
Repeating Sequence StairOutput and repeat discrete time sequence
Signal BuilderCreate and generate interchangeable groups of signals whose waveforms are piecewise linear
Signal GeneratorGenerate various waveforms
Sine WaveGenerate sine wave
StepGenerate step function
Uniform Random NumberGenerate uniformly distributed random numbers

User-Defined Functions

Embedded MATLAB FunctionInclude MATLAB code in models that generate embeddable C code
FcnApply specified expression to input
Level-2 M-File S-FunctionUse Level-2 M-file S-function in model
MATLAB FcnApply MATLAB function or expression to input
S-FunctionInclude S-function in model
S-Function BuilderCreate S-function from C code that you provide

Additional Math & Discrete

Additional DiscreteProvide additional discrete math support
Additional Math: Increment — DecrementIncrement or decrement value of signal by one

Additional Discrete

Fixed-Point State-SpaceImplement discrete-time state space
Transfer Fcn Direct Form IIImplement Direct Form II realization of transfer function
Transfer Fcn Direct Form II Time VaryingImplement time varying Direct Form II realization of transfer function
Unit Delay EnabledDelay signal one sample period, if external enable signal is on
Unit Delay Enabled External ICDelay signal one sample period, if external enable signal is on, with external initial condition
Unit Delay Enabled ResettableDelay signal one sample period, if external enable signal is on, with external Boolean reset
Unit Delay Enabled Resettable External ICDelay signal one sample period, if external enable signal is on, with external Boolean reset and initial condition
Unit Delay External ICDelay signal one sample period, with external initial condition
Unit Delay ResettableDelay signal one sample period, with external Boolean reset
Unit Delay Resettable External ICDelay signal one sample period, with external Boolean reset and initial condition
Unit Delay With Preview EnabledOutput signal and signal delayed by one sample period, if external enable signal is on
Unit Delay With Preview Enabled ResettableOutput signal and signal delayed by one sample period, if external enable signal is on, with external Boolean reset
Unit Delay With Preview Enabled Resettable External RVOutput signal and signal delayed by one sample period, if external enable signal is on, with external RV reset
Unit Delay With Preview ResettableOutput signal and signal delayed by one sample period, with external Boolean reset
Unit Delay With Preview Resettable External RVOutput signal and signal delayed by one sample period, with external RV reset

Additional Math: Increment — Decrement

Decrement Real WorldDecrease real world value of signal by one
Decrement Stored IntegerDecrease stored integer value of signal by one
Decrement Time To ZeroDecrease real-world value of signal by sample time, but only to zero
Decrement To ZeroDecrease real-world value of signal by one, but only to zero
Increment Real WorldIncrease real world value of signal by one
Increment Stored IntegerIncrease stored integer value of signal by one
  


 © 1984-2009- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS