Blocks
Alphabetical List
By Category
Modeling
Block Libraries
Continuous
Integrator | Integrate signal |
Derivative | Output time derivative of input |
Integrator Limited | Integrate signal |
PID Controller | Simulate continuous- or discrete-time PID controllers |
PID Controller (2 DOF) | Simulate continuous- or discrete-time two-degree-of-freedom PID controllers |
Second-Order Integrator | Integrate input signal twice |
Second-Order Integrator Limited | Integrate input signal twice |
State-Space | Implement linear state-space system |
Transfer Fcn | Model linear system by transfer function |
Transport Delay | Delay input by given amount of time |
Variable Time Delay | Delay input by variable amount of time |
Variable Transport Delay | Delay input by variable amount of time |
Zero-Pole | Model system by zero-pole-gain transfer function |
Discontinuities
Saturation | Limit range of signal |
Backlash | Model behavior of system with play |
Coulomb and Viscous Friction | Model discontinuity at zero, with linear gain elsewhere |
Dead Zone | Provide region of zero output |
Dead Zone Dynamic | Set inputs within bounds to zero |
Hit Crossing | Detect crossing point |
Quantizer | Discretize input at specified interval |
Rate Limiter | Limit rate of change of signal |
Rate Limiter Dynamic | Limit rising and falling rates of signal |
Relay | Switch output between two constants |
Saturation Dynamic | Bound range of input |
Wrap To Zero | Set output to zero if input is above threshold |
Discrete
Discrete-Time Integrator | Perform discrete-time integration or accumulation of signal |
Unit Delay | Delay signal one sample period |
Delay | Delay input signal by fixed or variable sample periods |
Difference | Calculate change in signal over one time step |
Discrete Derivative | Compute discrete-time derivative |
Discrete FIR Filter | Model FIR filters |
Discrete Filter | Model Infinite Impulse Response (IIR) 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 | 实现离散傅转移nction |
Discrete Zero-Pole | Model system defined by zeros and poles of discrete transfer function |
First-Order Hold | Implement first-order sample-and-hold |
Memory | Output input from previous time step |
Resettable Delay | Delay input signal by variable sample period and reset with external signal |
Tapped Delay | Delay scalar signal multiple sample periods and output all delayed versions |
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 | 实现的离散传递函数real zero and no pole |
Variable Integer Delay | Delay input signal by variable sample period |
Zero-Order Hold | Implement zero-order hold of one sample period |
Logic and Bit Operations
Logical Operator | Perform specified logical operation on input |
Relational Operator | Perform specified relational operation on inputs |
Bit Clear | Set specified bit of stored integer to zero |
Bit Set | Set specified bit of stored integer to one |
Bitwise Operator | Specified bitwise operation on inputs |
Combinatorial Logic | Implement truth table |
Compare To Constant | Determine how signal compares to specified constant |
Compare To Zero | Determine how signal compares to zero |
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 |
Extract Bits | Output selection of contiguous bits from input signal |
Interval Test | Determine if signal is in specified interval |
Interval Test Dynamic | Determine if signal is in specified interval |
Shift Arithmetic | Shift bits or binary point of signal |
Lookup Tables
1-D Lookup Table | Approximate one-dimensional function |
2-D Lookup Table | Approximate two-dimensional function |
Cosine | Implement fixed-point sine or cosine wave using lookup table approach that exploits quarter wave symmetry |
Direct Lookup Table (n-D) | Index into N-dimensional table to retrieve element, column, or 2-D matrix |
Interpolation Using Prelookup | Use precalculated index and fraction values to accelerate approximation of N-dimensional function |
Lookup Table Dynamic | Approximate one-dimensional function using dynamic table |
Prelookup | Compute index and fraction for Interpolation Using Prelookup block |
Sine | Implement fixed-point sine or cosine wave using lookup table approach that exploits quarter wave symmetry |
n-D Lookup Table | Approximate N-dimensional function |
Math Operations
Gain | Multiply input by constant |
Product | Multiply and divide scalars and nonscalars or multiply and invert matrices |
Sum | Add or subtract inputs |
Vector Concatenate | Concatenate input signals of same data type to create contiguous output signal |
Slider Gain | Vary scalar gain using slider |
Dot Product | Generate dot product of two vectors |
Product of Elements | Copy or invert one scalar input, or collapse one nonscalar input |
Divide | Divide one input by another |
Add | Add or subtract inputs |
Subtract | Add or subtract inputs |
Sum of Elements | Add or subtract inputs |
Abs | 输出输入的绝对值 |
Math Function | Perform mathematical function |
Trigonometric Function | Specified trigonometric function on input |
Rounding Function | Apply rounding function to signal |
Sign | Indicate sign of input |
Sqrt | Calculate square root, signed square root, or reciprocal of square root |
Signed Sqrt | Calculate square root, signed square root, or reciprocal of square root |
Reciprocal Sqrt | Calculate square root, signed square root, or reciprocal of square root |
Algebraic Constraint | Constrain input signal to zero |
Assignment | Assign values to specified elements of signal |
Bias | Add bias to input |
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 |
Find | Find nonzero elements in array |
Magnitude-Angle to Complex | Convert magnitude and/or a phase angle signal to complex signal |
Matrix Concatenate | Concatenate input signals of same data type to create contiguous output signal |
MinMax | Output minimum or maximum input value |
MinMax Running Resettable | Determine minimum or maximum of signal over time |
Permute Dimensions | Rearrange dimensions of multidimensional array dimensions |
Polynomial | Perform evaluation of polynomial coefficients on input values |
Real-Imag to Complex | Convert real and/or imaginary inputs to complex signal |
Reshape | Change dimensionality of signal |
Sine Wave Function | Generate sine wave, using external signal as time source |
Squeeze | Remove singleton dimensions from multidimensional signal |
Unary Minus | Negate input |
Weighted Sample Time Math | Support calculations involving sample time |
Model Verification
Assertion | Check whether signal is zero |
Check Dynamic Gap | Check that gap of possibly varying width occurs in range of signal's amplitudes |
Check Dynamic Range | Check that signal falls inside range of amplitudes that varies from time step to time step |
Check Static Gap | Check that gap exists in signal's range of amplitudes |
Check Static Range | Check that signal falls inside fixed range of amplitudes |
Check Discrete Gradient | Check that absolute value of difference between successive samples of discrete signal is less than upper bound |
Check Dynamic Lower Bound | Check that one signal is always less than another signal |
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 Lower Bound | Check that signal is greater than (or optionally equal to) static lower bound |
Check Static Upper Bound | Check that signal is less than (or optionally equal to) static upper bound |
Model-Wide Utilities
Block Support Table | View data type support for Simulink blocks |
DocBlock | Create text that documents model and save text with model |
Model Info | Display model properties and text in model |
Timed-Based Linearization | Generate linear models in base workspace at specific times |
Trigger-Based Linearization | Generate linear models in base workspace when triggered |
Ports and Subsystems
Inport | Create input port for subsystem or external input |
Outport | Create output port for subsystem or external output |
Subsystem | Represent system within another system |
Unit System Configuration | Configure units |
Model | Include multiple model implementations as block in another model |
Model Variants | Include multiple model implementations as block in another model |
Variant Subsystem | Represent multiple implementations of a system via a subsystem |
Configurable Subsystem | Represent any block selected from user-specified library of blocks |
Atomic Subsystem | Represent system within another system |
CodeReuse Subsystem | Represent system within another system |
Enabled Subsystem | Subsystem whose execution is enabled by external input |
Triggered Subsystem | Subsystem whose execution is triggered by external input |
Enabled and Triggered Subsystem | Subsystem whose execution is enabled and triggered by external input |
Resettable Subsystem | Represent subsystem whose states reset with external trigger |
If Action Subsystem | Represent subsystem whose execution is triggered by If block |
Switch Case Action Subsystem | Represent subsystem whose execution is triggered by Switch Case block |
For Iterator Subsystem | Represent subsystem that executes repeatedly during simulation time step |
For Each Subsystem | Repeatedly perform algorithm on each element or subarray of input signal and concatenate results |
While Iterator Subsystem | Represent subsystem that executes repeatedly while condition is satisfied during simulation time step |
Trigger | Add trigger port to model or subsystem |
Action Port | Implement Action subsystems used in if and switch control flow statements |
Enable | Add enable port to model or system |
Reset | Add reset port to subsystem |
For Each | Enable blocks inside For Each Subsystem to process elements or subarrays of a mask parameter or input signal independently |
For Iterator | Repeatedly execute contents of subsystem at current time step until iteration variable exceeds specified iteration limit |
If | Model if-else control flow |
Switch Case | Implement C-like switch control flow statement |
While Iterator | Repeatedly execute contents of subsystem at current time step while condition is satisfied |
Function-Call Subsystem | Subsystem whose execution is triggered by external function call input |
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 |
Signal Attributes
Data Type Conversion | Convert input signal to specified data type |
Bus to Vector | Convert virtual bus to vector |
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 |
IC | Set initial value of signal |
Probe | Output signal attributes, including width, dimensionality, sample time, and complex signal flag |
Rate Transition | Handle transfer of data between blocks operating at different rates |
Signal Conversion | Convert signal to new type without altering signal values |
Signal Specification | Specify desired dimensions, sample time, data type, numeric type, and other attributes of signal |
Weighted Sample Time | Support calculations involving sample time |
Width | Output width of input vector |
Unit Conversion | Convert units |
Signal Routing
Bus Creator | Create signal bus |
Bus Selector | Select signals from incoming bus |
Demux | Extract and output elements of vector signal |
Mux | Combine several input signals into vector |
Switch | Switch output between first input and third input based on value of second input |
Bus Assignment | Replace specified bus elements |
Data Store Memory | Define data store |
Data Store Read | Read data from data store |
Data Store Write | Write data to data store |
Environment Controller | Create branches of block diagram that apply only to simulation or only to code generation |
From | Accept input from Goto block |
Goto | Pass block input to From blocks |
Goto Tag Visibility | Define scope of Goto block tag |
Index Vector | Switch output between different inputs based on value of first input |
Manual Switch | Switch between two inputs |
Merge | Combine multiple signals into single signal |
Multiport Switch | Choose between multiple block inputs |
Selector | Select input elements from vector, matrix, or multidimensional signal |
Vector Concatenate | Concatenate input signals of same data type to create contiguous output signal |
Variant Source | Route amongst multiple inputs using variants |
Variant Sink | Route amongst multiple outputs using variants |
Manual Variant Source | Switch amongst multiple variant choices at input |
Manual Variant Sink | Switch amongst multiple variant choices at output |
Sinks
Outport | Create output port for subsystem or external output |
Scope | Display signals generated during simulation |
Terminator | Terminate unconnected output port |
Display | Show value of input |
Floating Scope | Display signals generated during simulation |
Stop Simulation | Stop simulation when input is nonzero |
To File | Write data to file |
To Workspace | Write data to workspace |
XY Graph | Display X-Y plot of signals using MATLAB figure window |
Sources
Constant | Generate constant value |
Ground | Ground unconnected input port |
Inport | Create input port for subsystem or external input |
Sine Wave | Generate sine wave, using simulation time as time source |
Band-Limited White Noise | Introduce white noise into continuous system |
Chirp Signal | Generate sine wave with increasing frequency |
Clock | Display and provide simulation time |
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 |
Digital Clock | Output simulation time at specified sampling interval |
Enumerated Constant | Generate enumerated constant value |
From File | Load data from MAT-file |
From Spreadsheet | Read data from spreadsheet |
Pulse Generator | Generate square wave pulses at regular intervals |
Ramp | Generate constantly increasing or decreasing signal |
Random Number | Generate normally distributed random numbers |
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 |
Signal Builder | Create and generate interchangeable groups of signals whose waveforms are piecewise linear |
Signal Generator | Generate various waveforms |
Step | Generate step function |
Uniform Random Number | Generate uniformly distributed random numbers |
Waveform Generator | Output waveforms using signal notations |
User-Defined Functions
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 exported Stateflow functionFunction defined with Simulink blocks |
Interpreted MATLAB Function | Apply MATLAB function or expression to input |
Level-2 MATLAB S-Function | Use Level-2 MATLAB S-function in model |
MATLAB函数 | 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 | Call Simulink or exported Stateflow functionFunction defined with Simulink blocks |
Additional Math and Discrete
Fixed-Point State-Space | Implement discrete-time state space |
Transfer Fcn Direct Form II | 实现直接形式II实现转移unction |
Transfer Fcn Direct Form II Time Varying | Implement time varying Direct Form II realization of transfer function |
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 |
Increment Real World | Increase real world value of signal by one |
Increment Stored Integer | 增加存储整数值的信号 |
HDL Coder
HDL Subsystems
State Control | Specify synchronous reset and enable behavior for blocks with state |
Synchronous Subsystem | Represent subsystem that has synchronous reset and enable behavior |
Enabled Synchronous Subsystem | Represent enabled subsystem that has synchronous reset and enable behavior |
Resettable Synchronous Subsystem | Represent resettable subsystem that has synchronous reset and enable behavior |
HDL Operations
Dual Port RAM | Dual port RAM with two output ports |
Dual Rate Dual Port RAM | Dual Port RAM that supports two rates |
Simple Dual Port RAM | Dual port RAM with single output port |
Single Port RAM | Single port RAM |
HDL FIFO | Stores sequence of input samples in first in, first out (FIFO) register |
HDL Counter | Free-running or count-limited hardware counter |
HDL Reciprocal | Calculate reciprocal with Newton-Raphson approximation method |
Multiply-Add | Multiply-add combined operation |
Serializer1D | Convert vector signal to scalar or smaller vectors |
Deserializer1D | Convert scalar stream or smaller vectors to vector signal |
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 Shift | Logical or arithmetic shift of input signal |
Bit Slice | Return field of consecutive bits from input signal |
Lookup Tables
1-D Lookup Table | Approximate one-dimensional function |
2-D Lookup Table | Approximate two-dimensional function |
Direct Lookup Table (n-D) | Index into N-dimensional table to retrieve element, column, or 2-D matrix |
Interpolation Using Prelookup | Use precalculated index and fraction values to accelerate approximation of N-dimensional function |
Lookup Table Dynamic | Approximate one-dimensional function using dynamic table |
Prelookup | Compute index and fraction for Interpolation Using Prelookup block |
n-D Lookup Table | Approximate N-dimensional function |
Cosine HDL Optimized | Implement fixed-point cosine wave optimized for HDL code generation |
Sine HDL Optimized | Implement fixed-point sine wave by using lookup table approach that exploits quarter wave symmetry |
Design Models
Model Hierarchy
Nonlinearity
1-D Lookup Table | Approximate one-dimensional function |
2-D Lookup Table | Approximate two-dimensional function |
Direct Lookup Table (n-D) | Index into N-dimensional table to retrieve element, column, or 2-D matrix |
Interpolation Using Prelookup | Use precalculated index and fraction values to accelerate approximation of N-dimensional function |
Lookup Table Dynamic | Approximate one-dimensional function using dynamic table |
n-D Lookup Table | Approximate N-dimensional function |
Prelookup | Compute index and fraction for Interpolation Using Prelookup block |
Sine, Cosine | Implement fixed-point sine or cosine wave using lookup table approach that exploits quarter wave symmetry |
Logically Executed Subsystems
If Action Subsystem | Represent subsystem whose execution is triggered by If block |
If | Model if-else control flow |
Switch Case Action Subsystem | Represent subsystem whose execution is triggered by Switch Case block |
Switch Case | Implement C-like switch control flow statement |
Action Port | Implement Action subsystems used in if and switch control flow statements |
While Iterator Subsystem | Represent subsystem that executes repeatedly while condition is satisfied during simulation time step |
While Iterator | Repeatedly execute contents of subsystem at current time step while condition is satisfied |
For Iterator Subsystem | Represent subsystem that executes repeatedly during simulation time step |
For Iterator | Repeatedly execute contents of subsystem at current time step until iteration variable exceeds specified iteration limit |
For Each Subsystem | Repeatedly perform algorithm on each element or subarray of input signal and concatenate results |
For Each | Enable blocks inside For Each Subsystem to process elements or subarrays of a mask parameter or input signal independently |
Conditionally Executed Subsystems
Enabled Subsystem | Subsystem whose execution is enabled by external input |
Triggered Subsystem | Subsystem whose execution is triggered by external input |
Enabled and Triggered Subsystem | Subsystem whose execution is enabled and triggered by external input |
Enable | Add enable port to model or system |
Trigger | Add trigger port to model or subsystem |
Function-Call Subsystem | Subsystem whose execution is triggered by external function call input |
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 Feedback Latch | Break feedback loop involving data signals between function-call blocks |
Trigger | Add trigger port to model or subsystem |
Initialize Function | Executes contents on a model initialize event |
Reset Function | Executes contents on a model reset event |
Terminate Function | Execute contents on a model terminate event |
Event Listener | Add event port to subsystem |
State Reader | Read a block state |
State Writer | Write to a block state |
Resettable Subsystem | Represent subsystem whose states reset with external trigger |
Reset | Add reset port to subsystem |
Simulink Functions in Simulink Models
Simulink Function | Call Simulink or exported Stateflow functionFunction defined with Simulink blocks |
Argument Inport | Argument input port for Simulink Function block |
Argument Outport | Argument output port for Simulink Function block |
Function Caller | Call Simulink or exported Stateflow functionFunction defined with Simulink blocks |
MATLAB函数 | Include MATLAB code in models that generate embeddable C code |
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 |
Configure Models
Signals
Signal Specification | Specify desired dimensions, sample time, data type, numeric type, and other attributes of signal |
Bus to Vector | Convert virtual bus to vector |
IC | Set initial value of signal |
Probe | Output signal attributes, including width, dimensionality, sample time, and complex signal flag |
Rate Transition | Handle transfer of data between blocks operating at different rates |
Signal Conversion | Convert signal to new type without altering signal values |
Weighted Sample Time | Support calculations involving sample time |
Width | Output width of input vector |
Units in Simulink
Inport | Create input port for subsystem or external input |
Outport | Create output port for subsystem or external output |
Signal Specification | Specify desired dimensions, sample time, data type, numeric type, and other attributes of signal |
Unit System Configuration | Configure units |
Unit Conversion | Convert units |
Data Types
Block Support Table | View data type support for Simulink blocks |
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 |
Annotate Models
DocBlock | Create text that documents model and save text with model |
Model Info | Display model properties and text in model |
Transform Models
Trimming and Linearization
Timed-Based Linearization | Generate linear models in base workspace at specific times |
Trigger-Based Linearization | Generate linear models in base workspace when triggered |
Simulation
Prepare Model Inputs and Outputs
Create Signal Data to Load
From File | Load data from MAT-file |
From Spreadsheet | Read data from spreadsheet |
From Workspace | Load signal data from workspace |
Signal Builder | Create and generate interchangeable groups of signals whose waveforms are piecewise linear |
Band-Limited White Noise | Introduce white noise into continuous system |
Chirp Signal | Generate sine wave with increasing frequency |
Clock | Display and provide simulation time |
Constant | Generate constant value |
Enumerated Constant | Generate enumerated constant value |
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 |
Digital Clock | Output simulation time at specified sampling interval |
Ground | Ground unconnected input port |
Pulse Generator | Generate square wave pulses at regular intervals |
Ramp | Generate constantly increasing or decreasing signal |
Random Number | Generate normally distributed random numbers |
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 |
Signal Generator | Generate various waveforms |
Sine Wave | Generate sine wave, using simulation time as time source |
Step | Generate step function |
Uniform Random Number | Generate uniformly distributed random numbers |
Waveform Generator | Output waveforms using signal notations |
Load Signal Data for Simulation
Inport | Create input port for subsystem or external input |
Enable | Add enable port to model or system |
Trigger | Add trigger port to model or subsystem |
From File | Load data from MAT-file |
From Spreadsheet | Read data from spreadsheet |
From Workspace | Load signal data from workspace |
Signal Builder | Create and generate interchangeable groups of signals whose waveforms are piecewise linear |
Band-Limited White Noise | Introduce white noise into continuous system |
Chirp Signal | Generate sine wave with increasing frequency |
Clock | Display and provide simulation time |
Constant | Generate constant value |
Enumerated Constant | Generate enumerated constant value |
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 |
Digital Clock | Output simulation time at specified sampling interval |
Ground | Ground unconnected input port |
Pulse Generator | Generate square wave pulses at regular intervals |
Ramp | Generate constantly increasing or decreasing signal |
Random Number | Generate normally distributed random numbers |
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 |
Signal Generator | Generate various waveforms |
Sine Wave | Generate sine wave, using simulation time as time source |
Step | Generate step function |
Uniform Random Number | Generate uniformly distributed random numbers |
Waveform Generator | Output waveforms using signal notations |
Save Runtime Data from Simulation
Outport | Create output port for subsystem or external output |
To File | Write data to file |
To Workspace | Write data to workspace |
View and Analyze Simulation Results
View Simulation Results
Scope | Display signals generated during simulation |
Floating Scope | Display signals generated during simulation |
XY Graph | Display X-Y plot of signals using MATLAB figure window |
Control Simulations with Interactive Displays
Dashboard Scope | Trace signals during simulation |
Gauge | Display input value on circular scale |
Half Gauge | Display input value on semicircular scale |
Linear Gauge | Display input value on linear scale |
Quarter Gauge | Display input value on ninety degree scale |
Lamp | Display color that reflects input value |
MultiStateImage | Display an image that reflects an input value |
Knob | Set value on dial to tune parameters or variables |
Slider | Set value on sliding scale to tune parameters or variables |
Push Button | Set value of tunable parameter or variable by holding button |
Rotary Switch | Set value on dial switch to tune parameters or variables |
Rocker Switch | Set on/off values to tune parameters or variables |
Slider Switch | Set on/off values to tune parameters or variables |
Toggle Switch | Set on/off values to tune parameters or variables |
Component-Based Modeling
Model Architecture
Subsystems
Subsystem | Represent system within another system |
Libraries
Subsystem | Represent system within another system |
Unresolved Link | Indicate unresolved reference to library block |
Model Referencing
Model | Include multiple model implementations as block in another model |
Data Stores
Data Store Memory | Define data store |
Data Store Read | Read data from data store |
Data Store Write | Write data to data store |
Composite Signals
Bus Assignment | Replace specified bus elements |
Bus Creator | Create signal bus |
Bus Selector | Select signals from incoming bus |
In Bus Element | Select bus element or entire bus that is connected to subsystem input port |
Out Bus Element | Output signals from a subsystem as a virtual bus |
Bus to Vector | Convert virtual bus to vector |
Demux | Extract and output elements of vector signal |
Mux | Combine several input signals into vector |
Variant Systems
Variant Subsystem | Represent multiple implementations of a system via a subsystem |
Variant Source | Route amongst multiple inputs using variants |
Variant Sink | Route amongst multiple outputs using variants |
Manual Variant Source | Switch amongst multiple variant choices at input |
Manual Variant Sink | Switch amongst multiple variant choices at output |
Model Variants | Include multiple model implementations as block in another model |
Block Creation
Block Creation Basics
Fcn | Apply specified expression to input |
Function Caller | Call Simulink or exported Stateflow functionFunction defined with Simulink blocks |
Interpreted MATLAB Function | Apply MATLAB function or expression to input |
Level-2 MATLAB S-Function | Use Level-2 MATLAB S-function in model |
MATLAB函数 | 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 | Call Simulink or exported Stateflow functionFunction defined with Simulink blocks |
Custom MATLAB Algorithms
MATLAB Algorithm Design
Language, Function, and Object Support
MATLAB函数 | Include MATLAB code in models that generate embeddable C code |
MATLAB System | Include System object in model |
Data Definition
Data Definition Basics
MATLAB函数 | Include MATLAB code in models that generate embeddable C code |
MATLAB System | Include System object in model |
Variable-Size Data
MATLAB函数 | Include MATLAB code in models that generate embeddable C code |
MATLAB System | Include System object in model |
Structures
MATLAB函数 | Include MATLAB code in models that generate embeddable C code |
MATLAB System | Include System object in model |
Enumerations
MATLAB函数 | Include MATLAB code in models that generate embeddable C code |
MATLAB Classes
MATLAB函数 | Include MATLAB code in models that generate embeddable C code |
MATLAB System | Include System object in model |
Function Handles
MATLAB函数 | Include MATLAB code in models that generate embeddable C code |
MATLAB System | Include System object in model |
Function Definition
MATLAB函数 | Include MATLAB code in models that generate embeddable C code |
MATLAB System | Include System object in model |
MATLAB Algorithm Integration
MATLAB函数 | Include MATLAB code in models that generate embeddable C code |
Code Generation
MATLAB函数 | Include MATLAB code in models that generate embeddable C code |
Performance
MATLAB函数 | Include MATLAB code in models that generate embeddable C code |
Host-Specific Code
S-Function Basics
S-Function | Include S-function in model |
S-Function Builder | Create S-function from C code that you provide |
C/C++ S-Functions
Create C/C++ S-Functions
S-Function | Include S-function in model |
S-Function Builder | Create S-function from C code that you provide |
MATLAB S-Functions
S-Function | Include S-function in model |
Fortran S-Functions
S-Function | Include S-function in model |
System Object Integration
Implement Blocks with System Objects
MATLAB System | Include System object in model |
Was this topic helpful?