| Simulink® | ![]() |
These tables list block-specific parameters for all Simulink blocks. The type of the block appears in parentheses after the block name. Some Simulink blocks are implemented as masked subsystems. The tables indicate masked blocks by adding the designation "masked" after the block type.
Note The type listed for nonmasked blocks is the value of the block's BlockType parameter (see Common Block Parameters); the type listed for masked blocks is the value of the block's MaskType parameter (see Mask Parameters). |
The Dialog Box Prompt column indicates the text of the prompt for the parameter on the block's dialog box. The Values column shows the type of value required (scalar, vector, variable), the possible values (separated with a vertical line), and the default value (enclosed in braces).
Continuous Library Block Parameters
| Block (Type)/Parameter | Dialog Box Prompt | Values |
|---|---|---|
Derivative (Derivative) | ||
LinearizePole | Linearization Time Constant s/(Ns+1) | string {'inf'} |
Integrator (Integrator) | ||
ExternalReset | External reset | {'none'} | 'rising' | 'falling' | 'either' | 'level' |
InitialConditionSource | Initial condition source | {'internal'} | 'external' |
InitialCondition | Initial condition | scalar or vector {'0'} |
LimitOutput | Limit output | {'off'} | 'on' |
UpperSaturationLimit | Upper saturation limit | scalar or vector {'inf'} |
LowerSaturationLimit | Lower saturation limit | scalar or vector {'-inf'} |
ShowSaturationPort | Show saturation port | {'off'} | 'on' |
ShowStatePort | Show state port | {'off'} | 'on' |
AbsoluteTolerance | Absolute tolerance | string {'auto'} |
ZeroCross | Enable zero–crossing detection | 'off' | {'on'} |
ContinuousStateAttributes | State Name | string{''}| variable |
State-Space (StateSpace) | ||
A | A | matrix {'1'} |
B | B | matrix {'1'} |
C | C | matrix {'1'} |
D | D | matrix {'1'} |
X0 | Initial conditions | vector {'0'} |
AbsoluteTolerance | Absolute tolerance | string {'auto'} |
ContinuousStateAttributes | State Name | string{''}| variable |
Transfer Fcn (TransferFcn) | ||
Numerator | Numerator | vector or matrix {'[1]'} |
Denominator | Denominator | vector {'[1 1]'} |
AbsoluteTolerance | Absolute tolerance | string {'auto'} |
ContinuousStateAttributes | State Name | string{''}| variable |
Transport Delay (TransportDelay) | ||
DelayTime | Time delay | scalar or vector {'1'} |
InitialOutput | Initial output | scalar or vector {'0'} |
BufferSize | Initial buffer size | scalar {'1024'} |
FixedBuffer | Use fixed buffer size | {'off'} | 'on' |
PadeOrder | Pade order (for linearization) | string {'0'} |
TransDelayFeedthrough | Direct feedthrough of input during linearization | {'off'} | 'on' |
Variable Time Delay (VariableTimeDelay) | ||
VariableDelayType | Select delay type | 'Variable transport delay' | {'Variable time delay'} |
MaximumDelay | Maximum delay | scalar or vector {'10'} |
InitialOutput | Initial output | scalar or vector {'0'} |
MaximumPoints | Initial buffer size | scalar {'1024'} |
FixedBuffer | Use fixed buffer size | {'off'} | 'on' |
ZeroDelay | Handle zero delay | {'off'} | 'on' |
TransDelayFeedthrough | Direct feedthrough of input during linearization | {'off'} | 'on' |
PadeOrder | Pade order (for linearization) | string {'0'} |
ContinuousStateAttributes | State Name | string{''}| variable |
Variable Transport Delay (VariableTransportDelay) | ||
VariableDelayType | Select delay type | {'Variable transport delay'} | 'Variable time delay' |
MaximumDelay | Maximum delay | scalar or vector {'10'} |
InitialOutput | Initial output | scalar or vector {'0'} |
MaximumPoints | Initial buffer size | scalar {'1024'} |
FixedBuffer | Use fixed buffer size | {'off'} | 'on' |
PadeOrder | Pade order (for linearization) | string {'0'} |
TransDelayFeedthrough | Direct feedthrough of input during linearization | {'off'} | 'on' |
AbsoluteTolerance | Absolute tolerance | scalar {'auto'} |
ContinuousStateAttributes | State Name | string{''}| variable |
Zero-Pole (ZeroPole) | ||
Zeros | Zeros | vector {'[1]'} |
Poles | Poles | vector {'[0 -1]'} |
Gain | Gain | vector {'[1]'} |
AbsoluteTolerance | Absolute tolerance | string {'auto'} |
ContinuousStateAttributes | State Name | string{''}| variable |
Discontinuities Library Block Parameters
Block (Type)/Parameter | Dialog Box Prompt | Values |
|---|---|---|
Backlash (Backlash) | ||
BacklashWidth | Deadband width | scalar or vector {1} |
InitialOutput | Initial output | scalar or vector {0} |
ZeroCross | Enable zero-crossing detection | 'off' | {'on'} |
SampleTime | Sample time (-1 for inherited) | string {'-1'} |
Coulomb & Viscous Friction (Coulombic and Viscous Friction) (masked subsystem) | ||
offset | Coulomb friction value (Offset) | string {'[1 3 2 0]'} |
gain | Coefficient of viscous friction (Gain) | string {'1'} |
Dead Zone (DeadZone) | ||
LowerValue | Start of dead zone | scalar or vector {-0.5} |
UpperValue | End of dead zone | scalar or vector {0.5} |
SaturateOnInteger | Saturate on integer overflow | 'off' | {'on'} |
LinearizeAsGain | Treat as gain when linearizing | 'off' | {'on'} |
ZeroCross | Enable zero-crossing detection | 'off' | {'on'} |
SampleTime | Sample time (-1 for inherited) | string {'-1'} |
Dead Zone Dynamic (Dead Zone Dynamic) (masked subsystem) | ||
Hit Crossing (HitCross) | ||
HitCrossingOffset | Hit crossing offset | scalar or vector {'0'} |
HitCrossingDirection | Hit crossing direction | 'rising' | 'falling' | {'either'} |
ShowOutputPort | Show output port | {'on'} | 'off' |
ZeroCross | Enable zero-crossing detection | 'off' | {'on'} |
SampleTime | Sample time (-1 for inherited) | string {'-1'} |
Quantizer (Quantizer) | ||
QuantizationInterval | Quantization interval | scalar or vector {'0.5'} |
LinearizeAsGain | Treat as gain when linearizing | 'off' | {'on'} |
SampleTime | Sample time (-1 for inherited) | string {'-1'} |
Rate Limiter (RateLimiter) | ||
RisingSlewLimit | Rising slew rate | string {'1'} |
FallingSlewLimit | Falling slew rate | string {'-1'} |
SampleTimeMode | Sample time mode | 'continuous' | {'inherited'} |
InitialCondition | Initial condition | string {'0'} |
LinearizeAsGain | Treat as gain when linearizing | 'off' | {'on'} |
Rate Limiter Dynamic (Rate Limiter Dynamic) (masked subsystem) | ||
Relay (Relay) | ||
OnSwitchValue | Switch on point | string {'eps'} |
OffSwitchValue | Switch off point | string {'eps'} |
OnOutputValue | Output when on | string {'1'} |
OffOutputValue | Output when off | string {'0'} |
OutMin | Output minimum | string {'[]'} |
OutMax | Output maximum | string {'[]'} |
OutDataTypeStr | Output data type | string 'Inherit: Inherit via back propagation' | {'Inherit: All ports same datatype'} | 'double' | 'single' | 'int8' | 'uint8' | 'int16' | 'uint16' | 'int32' | 'uint32' |
LockScale | Lock output scaling against changes by the autoscaling tool | 'on' | {'off'} |
ZeroCross | Enable zero-crossing detection | 'off' | {'on'} |
SampleTime | Sample time (-1 for inherited) | string {'-1'} |
Saturation (Saturate) | ||
UpperLimit | Upper limit | scalar or vector {'0.5'} |
LowerLimit | Lower limit | scalar or vector {'-0.5'} |
LinearizeAsGain | Treat as gain when linearizing | 'off' | {'on'} |
ZeroCross | Enable zero-crossing detection | 'off' | {'on'} |
SampleTime | Sample time (-1 for inherited) | string {'-1'} |
OutMin | Output minimum | string {'[]'} |
OutMax | Output maximum | string {'[]'} |
OutDataTypeStr | Output data type | string 'Inherit: Inherit via back propagation' | {'Inherit: Same as input'} | 'double' | 'single' | 'int8' | 'uint8' | 'int16' | 'uint16' | 'int32' | 'uint32' |
LockScale | Lock output scaling against changes by the autoscaling tool | {'off'} | 'on' |
RndMeth | Round integer calculations toward | 'Zero' | 'Nearest' | 'Ceiling' | {'Floor'} |
Saturation Dynamic (Saturation Dynamic) (masked subsystem) | ||
OutMin | Output minimum | string {'[]'} |
OutMax | Output maximum | string {'[]'} |
OutDataTypeStr | Output data type | string {'Inherit: Same as second input'} | 'double' | 'single' | 'int8' | 'uint8' | 'int16' | 'uint16' | 'int32' | 'uint32' |
OutputDataTypeScaling | Deprecated | |
OutDataType | Deprecated | |
OutScaling | Deprecated | |
LockScale | Lock output scaling against changes by the autoscaling tool | {'off'} | 'on' |
RndMeth | Round integer calculations toward | 'Zero' | 'Nearest' | 'Ceiling' | {'Floor'} |
DoSatur | Saturate on integer overflow | {'off'} | 'on' |
Wrap To Zero (Wrap To Zero) (masked subsystem) | ||
Threshold | Threshold | string {'255'} |
Discrete Library Block Parameters
| Block (Type)/Parameter | Dialog Box Prompt | Values |
|---|---|---|
Difference (Difference) (masked subsystem) | ||
ICPrevInput | Initial condition for previous input | string {'0.0'} |
OutMin | Output minimum | string {'[]'} |
OutMax | Output maximum | string {'[]'} |
OutDataTypeStr | Output data type | string {'Inherit: Inherit via internal rule'} | 'Inherit: Inherit via back propagation' | 'double' | 'single' | 'int8' | 'uint8' | 'int16' | 'uint16' | 'int32' | 'uint32' |
OutputDataTypeScaling | Deprecated | |
OutDataType | Deprecated | |
OutScaling | Deprecated | |
LockScale | Lock output scaling against changes by the autoscaling tool | {'off'} | 'on' |
RndMeth | Round toward | 'Zero' | 'Nearest' | 'Ceiling' | {'Floor'} |
DoSatur | Saturate to max or min when overflows occur | {'off'} | 'on' |
Discrete Derivative (Discrete Derivative) (masked subsystem) | ||
gainval | Gain value | string {'1.0'} |
ICPrevScaledInput | Initial condition for previous weighted input K*u/Ts | string {'0.0'} |
OutMin | Output minimum | string {'[]'} |
OutMax | Output maximum | string {'[]'} |
OutDataTypeStr | Output data type | string {'Inherit: Inherit via internal rule'} | 'Inherit: Inherit via back propagation' | 'double' | 'single' | 'int8' | 'uint8' | 'int16' | 'uint16' | 'int32' | 'uint32' |
OutputDataTypeScaling | Deprecated | |
OutDataType | Deprecated | |
OutScaling | Deprecated | |
LockScale | Lock output scaling against changes by the autoscaling tool | {'off'} | 'on' |
RndMeth | Round toward | 'Zero' | 'Nearest' | 'Ceiling' | {'Floor'} |
DoSatur | Saturate to max or min when overflows occur | {'off'} | 'on' |
Discrete Filter (DiscreteFilter) | ||
Numerator | Numerator | vector {'[1]'} |
Denominator | Denominator | vector {'[1 0.5]'} |
SampleTime | Sample time (-1 for inherited) | string {'1'} |
StateIdentifier | State name | string {} |
StateMustResolveTo | State name must resolve to Simulink signal object | {'off'} | 'on' |
RTWStateStorageClass | Real-Time Workshop storage class | {'Auto'} | 'ExportedGlobal' | 'ImportedExtern' | 'ImportedExternPointer' |
RTWStateStorageType | Real-Time Workshop storage type qualifier | string {} |
Discrete State-Space (DiscreteStateSpace) | ||
A | A | string {'1'} |
B | B | string {'1'} |
C | C | string {'1'} |
D | D | string {'1'} |
X0 | Initial conditions | string {'0'} |
SampleTime | Sample time | string {'1'} |
StateIdentifier | State name | string {} |
StateMustResolveTo | State name must resolve to Simulink signal object | {'off'} | 'on' |
RTWStateStorageClass | Real-Time Workshop storage class | {'Auto'} | 'ExportedGlobal' | 'ImportedExtern' | 'ImportedExternPointer' |
RTWStateStorageType | Real-Time Workshop storage type qualifier | string {} |
Discrete Transfer Fcn (DiscreteTransferFcn) | ||
| Numerator | Numerator | vector {'[1]'} |
Denominator | Denominator | vector {'[1 0.5]'} |
SampleTime | Sample time (-1 for inherited) | string {'1'} |
StateIdentifier | State name | string {} |
StateMustResolveTo SignalObject | State name must resolve to Simulink signal object | {'off'} | 'on' |
RTWStateStorageClass | Real-Time Workshop storage class | {'Auto'} | 'ExportedGlobal' | 'ImportedExtern' | 'ImportedExternPointer' |
RTWStateStorageType | Real-Time Workshop storage type qualifier | string {} |
Discrete Zero-Pole (DiscreteZeroPole) | ||
Zeros | Zeros | vector {'[1]'} |
Poles | Poles | vector {'[0 0.5]'} |
Gain | Gain | string {'1'} |
SampleTime | Sample time (-1 for inherited) | string {'1'} |
StateIdentifier | State name | string {} |
StateMustResolveTo | State name must resolve to Simulink signal object | {'off'} | 'on' |
RTWStateStorageClass | Real-Time Workshop storage class | {'Auto'} | 'ExportedGlobal' | 'ImportedExtern' | 'ImportedExternPointer' |
RTWStateStorageType | Real-Time Workshop storage type qualifier | string {} |
Discrete-Time Integrator (DiscreteIntegrator) | ||
IntegratorMethod | Integrator method | {'Integration: Forward Euler'} | 'Integration: Backward Euler' | 'Integration: Trapezoidal' | 'Accumulation: Forward Euler' | 'Accumulation: Backward Euler' | 'Accumulation: Trapezoidal' |
gainval | Gain value | string {'1.0'} |
ExternalReset | External reset | {'none'} | 'rising' | 'falling' | 'either' | 'level' |
InitialConditionSource | Initial condition source | {'internal'} | 'external' |
InitialCondition | Initial condition | scalar or vector {'0'} |
InitialConditionMode | Use initial condition as initial and reset value for | 'State only (most efficient)' | {'State and output'} |
SampleTime | Sample time (-1 for inherited) | string {'1'} |
OutMin | Output minimum | string {'[]'} |
OutMax | Output maximum | string {'[]'} |
OutDataTypeStr | Output data type | string {'Inherit: Inherit via internal rule '} | 'Inherit: Inherit via back propagation' | 'double' | 'single' | 'int8' | 'uint8' | 'int16' | 'uint16' | 'int32' | 'uint32' |
LockScale | Lock output scaling against changes by the autoscaling tool | {'off'} | 'on' |
RndMeth | Round integer calculations toward | 'Zero' | 'Nearest' | 'Ceiling' | {'Floor'} |
SaturateOnInteger | Saturate on integer overflow | {'off'} | 'on' |
LimitOutput | Limit output | {'off'} | 'on' |
UpperSaturationLimit | Upper saturation limit | scalar or vector {'inf'} |
LowerSaturationLimit | Lower saturation limit | scalar or vector {'-inf'} |
ShowSaturationPort | Show saturation port | {'off'} | 'on' |
ShowStatePort | Show state port | {'off'} | 'on' |
IgnoreLimit | Ignore limit and reset when linearizing | {'off'} | 'on' |
StateIdentifier | State name | string {''} |
StateMustResolveTo | State name must resolve to Simulink signal object | {'off'} | 'on' |
RTWStateStorageClass | Real-Time Workshop storage class | {'Auto'} | 'ExportedGlobal' | 'ImportedExtern' | 'ImportedExternPointer' |
RTWStateStorageType | Real-Time Workshop storage type qualifier | string {''} |
First-Order Hold (First-Order Hold) (masked subsystem) | ||
Ts | Sample time | string {'1'} |
Integer Delay (S-Function) (Integer Delay) (masked subsystem) | ||
vinit | Initial condition | string {'0.0'} |
samptime | Sample time | string {'-1'} |
NumDelays | Number of delays | string {'4'} |
Memory (Memory) | ||
X0 | Initial condition | scalar or vector {'0'} |
InheritSampleTime | Inherit sample time | {'off'} | 'on' |
LinearizeMemory | Direct feedthrough of input during linearization | {'off'} | 'on' |
StateIdentifier | State name | string {} |
StateMustResolveTo | State name must resolve to Simulink signal object | {'off'} | 'on' |
RTWStateStorageClass | Real-Time Workshop storage class | {'Auto'} | 'ExportedGlobal' | 'ImportedExtern' | 'ImportedExternPointer' |
RTWStateStorageType | Real-Time Workshop storage type qualifier | string {} |
Tapped Delay (S-Function) (Tapped Delay Line) (masked subsystem) | ||
vinit | Initial condition | string {'0.0'} |
samptime | Sample time | string {'-1'} |
NumDelays | Number of delays | string {'4'} |
DelayOrder | Order output vector starting with | {'Oldest'} | 'Newest' |
includeCurrent | Include current input in output vector | {'off'} | 'on' |
Transfer Fcn (First Order Transfer Fcn) (masked subsystem) | ||
PoleZ | Pole (in Z plane) | string {'0.95'} |
ICPrevOutput | Initial condition for previous output | string {'0.0'} |
RndMeth | Round toward | 'Zero' | 'Nearest' | 'Ceiling' | {'Floor'} |
DoSatur | Saturate to max or min when overflows occur | {'off'} | 'on' |
Transfer Fcn Lead or Lag (Lead or Lag Compensator) (masked subsystem) | ||
PoleZ | Pole of compensator (in Z plane) | string {'0.95'} |
ZeroZ | Zero of compensator (in Z plane) | string {'0.75'} |
ICPrevOutput | Initial condition for previous output | string {'0.0'} |
ICPrevInput | Initial condition for previous input | string {'0.0'} |
RndMeth | Round toward | 'Zero' | 'Nearest' | 'Ceiling' | {'Floor'} |
DoSatur | Saturate to max or min when overflows occur | {'off'} | 'on' |
Transfer Fcn Real Zero (Transfer Fcn Real Zero) (masked subsystem) | ||
ZeroZ | Zero (in Z plane) | string {'0.75'} |
ICPrevInput | Initial condition for previous input | string {'0.0'} |
RndMeth | Round toward | 'Zero' | 'Nearest' | 'Ceiling' | {'Floor'} |
DoSatur | Saturate to max or min when overflows occur | {'off'} | 'on' |
Unit Delay (UnitDelay) | ||
X0 | Initial condition | scalar or vector {'0'} |
SampleTime | Sample time (-1 for inherited) | string {'1'} |
StateIdentifier | State name | string {} |
StateMustResolveTo | State name must resolve to Simulink signal object | {'off'} | 'on' |
RTWStateStorageClass | Real-Time Workshop storage class | {'Auto'} | 'ExportedGlobal' | 'ImportedExtern' | 'ImportedExternPointer' |
RTWStateStorageType | Real-Time Workshop storage type qualifier | string {} |
Zero-Order Hold (ZeroOrderHold) | ||
SampleTime | Sample time (-1 for inherited) | string {'1'} |
Logic and Bit Operations Library Block Parameters
Block (Type)/Parameter | Dialog Box Prompt | Values |
|---|---|---|
Bit Clear (Bit Clear) (masked subsystem) | ||
iBit | Index of bit (0 is least significant) | string {'0'} |
Bit Set (Bit Set) (masked subsystem) | ||
iBit | Index of bit (0 is least significant) | string {'0'} |
Bitwise Operator (S-Function) (Bitwise Operator) (masked subsystem) | ||
logicop | Operator | {'AND'} | 'OR' | 'NAND' | 'NOR' | 'XOR' | 'NOT' |
UseBitMask | Use bit mask ... | 'off' | {'on'} |
NumInputPorts | Number of input ports | string {'1'} |
BitMask | Bit mask | string {'bin2dec('11011001')'} |
BitMaskRealWorld | Treat mask as | 'Real World Value' | {'Stored Integer'} |
Combinatorial Logic (CombinatorialLogic) | ||
TruthTable | Truth table | string {'[0 0;0 1;0 1;1 0;0 1;1 0;1 0;1 1]'} |
SampleTime | Sample time (-1 for inherited | string {'-1'} |
Compare To Constant (Compare To Constant) (masked subsystem) | ||
relop | Operator | '==' | '~=' | '<' | {'<='} | '>=' | '>' |
const | Constant value | string {'3.0'} |
LogicOutDataTypeMode | Output data type mode | {'uint8'} | 'boolean' |
ZeroCross | Enable zero-crossing detection | {'off'} | 'on' |
Compare To Zero (Compare To Zero) (masked subsystem) | ||
relop | Operator | '==' | '~=' | '<' | {'<='} | '>=' | '>' |
LogicOutDataTypeMode | Output data type mode | {'uint8'} | 'boolean' |
ZeroCross | Enable zero-crossing detection | {'off'} | 'on' |
Detect Change (Detect Change) (masked subsystem) | ||
vinit | Initial condition | string {'0'} |
Detect Decrease (Detect Decrease) (masked subsystem) | ||
vinit | Initial condition | string {'0.0'} |
Detect Fall Negative (Detect Fall Negative) (masked subsystem) | ||
vinit | Initial condition | string {'0'} |
Detect Fall Nonpositive (Detect Fall Nonpositive) (masked subsystem) | ||
vinit | Initial condition | string {'0'} |
Detect Increase (Detect Increase) (masked subsystem) | ||
vinit | Initial condition | string {'0.0'} |
Detect Rise Nonnegative (Detect Rise Nonnegative) (masked subsystem) | ||
vinit | Initial condition | string {'0'} |
Detect Rise Positive (Detect Rise Positive) (masked subsystem) | ||
vinit | Initial condition | string {'0'} |
Extract Bits (Extract Bits) (masked subsystem) | ||
bitsToExtract | Bits to extract | {'Upper half'} | 'Lower half' | 'Range starting with most | significant bit' | 'Range ending with least significant bit' | 'Range of bits' |
numBits | Number of bits | string {'8'} |
bitIdxRange | Bit indices ([start end], 0-based relative to LSB) | string {'[0 7]'} |
outScalingMode | Output scaling mode | {'Preserve fixed-point scaling'} | 'Treat bit field as an integer' |
Interval Test (Interval Test) (masked subsystem) | ||
IntervalClosedRight | Interval closed on right | 'off' | {'on'} |
uplimit | Upper limit | string {'0.5'} |
IntervalClosedLeft | Interval closed on left | 'off' | {'on'} |
lowlimit | Lower limit | string {'-0.5'} |
LogicOutDataTypeMode | Output data type mode | 'uint8' | {'boolean'} |
Interval Test Dynamic (Interval Test Dynamic) (masked subsystem) | ||
IntervalClosedRight | Interval closed on right | 'off' | {'on'} |
IntervalClosedLeft | Interval closed on left | 'off' | {'on'} |
LogicOutDataTypeMode | Output data type mode | 'uint8' | {'boolean'} |
Logical Operator (Logic) | ||
Operator | Operator | {'AND'} | 'OR' | 'NAND' | 'NOR' | 'XOR' | 'NOT' |
Inputs | Number of input ports | string {'2'} |
IconShape | Icon shape | {'rectangular'} | 'distinctive' |
AllPortsSameDT | Require all inputs and output to have the same data type | {'off'} | 'on' |
OutDataTypeStr | Output data type | string 'Inherit: Logical (see Configuration Parameters: Optimization)' | {'boolean'} |
SampleTime | Sample time (-1 for inherited) | string {'-1'} |
Relational Operator (RelationalOperator) | ||
Operator | Relational operator | '==' | '~=' | '<' | {'<='} | '>=' | '>' |
InputSameDT | Require all inputs to have the same data type | {'off'} | 'on' |
OutDataTypeStr | Output data type | string 'Inherit: Logical (see Configuration Parameters: Optimization)' | {'boolean'} |
ZeroCross | Enable zero-crossing detection | 'off' | {'on'} |
SampleTime | Sample time (-1 for inherited) | string {'-1'} |
Shift Arithmetic (Shift Arithmetic) (masked subsystem) | ||
nBitShiftRight | Number of bits to shift right (use negative value to shift left) | string {'0'} |
nBinPtShiftRight | Number of places by which binary point shifts right (use negative value to shift left) | string {'0'} |
Lookup Tables Block Parameters
| Block (Type)/Parameter | Dialog Box Prompt | Values |
|---|---|---|
Cosine (Cosine) (masked subsystem) | ||
Formula | Output formula | 'sin(2*pi*u)' | {'cos(2*pi*u)'} | 'exp(j*2*pi*u)' | 'sin(2*pi*u) and cos(2*pi*u)' |
NumDataPoints | Number of data points for lookup table | string {'(2^5)+1'} |
OutputWordLength | Output word length | string {'16'} |
Direct Lookup Table (n-D) (S-Function) (LookupNDDirect) (masked subsystem) | ||
maskTabDims | Number of table dimensions | '1' | {'2'} | '3' | '4' | 'More...' |
explicitNumDims | Explicit number of table dimensions | string {'1'} |
outDims | Inputs select this object from table | {'Element'} | 'Column' | '2-D Matrix' |
tabIsInput | Make table an input | {'off'} | 'on' |
mxTable | Table data | string {'[4 5 6;16 19 20;10 18 23]'} |
clipFlag | Action for out of range input | 'None' | {'Warning'} | 'Error' |
samptime | Sample time | string {'-1'} |
Interpolation Using Prelookup (Interpolation_n-D) | ||
NumberOfTableDimensions | Number of table dimensions | string {'2'} |
Table | Table data | string {'sqrt([1:11]' * [1:11])'} |
InterpMethod | Interpolation method | 'None - Flat' | {'Linear'} |
ExtrapMethod | Extrapolation method | 'None - Clip' | {'Linear'} |
RangeErrorMode | Action for out of range input | {'None'} | 'Warning' | 'Error' |
CheckIndexInCode | Check index in generated code | {'on'} | 'off' |
ValidIndexMayReachLast | Valid index input may reach last index | 'on' | {'off'} |
NumSelectionDims | Number of sub-table selection dimensions | string {'0'} |
OutMin | Output minimum | string {'[]'} |
OutMax | Output maximum | string {'[]'} |
OutDataTypeStr | Output data type | string 'Inherit: Inherit via back propagation' | {'Inherit: Inherit from table data'} | 'double' | 'single' | 'int8' | 'uint8' | 'int16' | 'uint16' | 'int32' | 'uint32' |
LockScale | Lock output scaling against changes by the autoscaling tool | 'on' | {'off'} |
RndMeth | Round integer calculations toward | 'Zero' | 'Nearest' | 'Ceiling' | {'Floor'} | 'Simplest' |
SampleTime | Sample time (-1 for inherited) | string {'-1'} |
Lookup Table (Lookup) | ||
InputValues | Vector of input values | vector {'[-5:5]'} |
Table | Table data | vector {'tanh([-5:5])'} |
LookUpMeth | Lookup method | {'Interpolation-Extrapolation'} | 'Interpolation-Use End Values' | 'Use Input Nearest' | 'Use Input Below' | 'Use Input Above' |
OutMin | Output minimum | string {'[]'} |
OutMax | Output maximum | string {'[]'} |
OutDataTypeStr | Output data type | string 'Inherit: Inherit via back propagation' | {'Inherit: Same as input'} | 'double' | 'single' | 'int8' | 'uint8' | 'int16' | 'uint16' | 'int32' | 'uint32' |
LockScale | Lock output scaling against changes by the autoscaling tool | {'off'} | 'on' |
RndMeth | Round integer calculations toward | 'Zero' | 'Nearest' | 'Ceiling' | {'Floor'} | 'Simplest' |
SaturateOnInteger | Saturate on integer overflow | {'off'} | 'on' |
SampleTime | Sample time (-1 for inherited) | string {'-1'} |
Lookup Table (2-D) (Lookup2D) | ||
RowIndex | Row index input values | string {'[1:3]'} |
ColumnIndex | Column index input values | string {'[1:3]'} |
Table | Table data | string {'[4 5 6;16 19 20;10 18 23]'} |
LookUpMeth | Lookup method | {'Interpolation-Extrapolation'} | 'Interpolation-Use End Values' | 'Use Input Nearest' | 'Use Input Below' | 'Use Input Above' |
InputSameDT | Require all inputs to have the same data type | 'on' | {'off'} |
OutMin | Output minimum | string {'[]'} |
OutMax | Output maximum | string {'[]'} |
OutDataTypeStr | Output data type | string 'Inherit: Inherit via back propagation' | {'Inherit: Same as first input'} | 'double' | 'single' | 'int8' | 'uint8' | 'int16' | 'uint16' | 'int32' | 'uint32' |
LockScale | Lock output scaling against changes by the autoscaling tool | 'on' | {'off'} |
RndMeth | Round integer calculations toward | 'Zero' | 'Nearest' | 'Ceiling' | {'Floor'} | 'Simplest' |
SaturateOnInteger | Saturate on integer overflow | 'on' | {'off'} |
SampleTime | Sample time (-1 for inherited) | string {'-1'} |
Lookup Table (n-D) (Lookup_n-D) | ||
NumberOfTableDimensions | Number of table dimensions | string {'2'} |
BreakpointsForDimension1 | Breakpoints for dimension 1 | string {'[10,22,31]'} |
BreakpointsForDimension2 | Breakpoints for dimension 2 | string {'[10,22,31]'} |
BreakpointsForDimension3 | Breakpoints for dimension 3 | string {'[1:3]'} |
BreakpointsForDimension4 | Breakpoints for dimension 4 | string {'[1:3]'} |
BreakpointsForDimension5 | Breakpoints for dimension 5 | string {'[1:3]'} |
IndexSearchMethod | Index search method | 'Evenly spaced points' | 'Linear search' | {'Binary search'} |
BeginIndexSearchUsing PreviousIndexResult | Begin index search using previous index result | 'on' | {'off'} |
UseOneInputPortForAll InputData | Use one input port for all input data | 'on' | {'off'} |
Table | Table data | string {'[4 5 6;16 19 20;10 18 23]'} |
InterpMethod | Interpolation method | 'None - Flat' | {'Linear'} | 'Cubic spline' |
ExtrapMethod | Extrapolation method | 'None - Clip' | {'Linear'} | 'Cubic spline' |
ProcessOutOfRangeInput | Process out-of-range input | {'None'} | 'Warning' | 'Error' |
UseLastTableValue | Use last table value for inputs at or above last breakpoint | 'on' | {'off'} |
SampleTime | Sample time (-1 for inherited) | string {'-1'} |
InputSameDT | Require all inputs to have the same data type | {'on'} | 'off' |
OutMin | Output minimum | string {'[]'} |
OutMax | Output maximum | string {'[]'} |
OutDataTypeStr | Output data type | string 'Inherit: Inherit via back propagation' | 'Inherit: Inherit from table data' | {'Inherit: Same as first input'} | 'double' | 'single' | 'int8' | 'uint8' | 'int16' | 'uint16' | 'int32' | 'uint32' |
LockScale | Lock output scaling against changes by the autoscaling tool | 'on' | {'off'} |
RndMeth | Round integer calculations toward | 'Zero' | 'Nearest' | 'Ceiling' | {'Floor'} | 'Simplest' |
FractionDataTypeStr | Fraction data type | string {'Inherit: Inherit via internal rule'} | 'double' | 'single' |
Lookup Table Dynamic (Lookup Table Dynamic) (masked subsystem) | ||
LookUpMeth | Lookup Method | 'Interpolation-Extrapolation' | {'Interpolation-Use End Values'} | 'Use Input Nearest' | 'Use Input Below' | 'Use Input Above' |
OutDataTypeStr | Output data type | string {'float('double')'} | 'Inherit: Inherit via back propagation' |
OutputDataTypeScaling | Deprecated | |
OutDataType | Deprecated | |
OutScaling | Deprecated | |
LockScale | Lock output scaling against changes by the autoscaling tool | 'on' | {'off'} |
RndMeth | Round toward | 'Zero' | 'Nearest' | 'Ceiling' | {'Floor'} | Simplest |
DoSatur | Saturate to max or min when overflows occur | 'on' | {'off'} |
Prelookup (PreLookup) | ||
BreakpointsData | Breakpoint data | string {'[10:10:110]'} |
IndexSearchMethod | Index search method | 'Evenly spaced points' | 'Linear search' | {'Binary search'} |
BeginIndexSearchUsing | Begin index search using previous index result | 'on' | {'off'} |
OutputOnlyTheIndex | Output only the index | 'on' | {'off'} |
ProcessOutOfRangeInput | Process out-of-range input | 'Clip to range' | {'Linear extrapolation'} |
UseLastBreakpoint | Use last breakpoint for input at or above upper limit | 'on' | {'off'} |
ActionForOutOfRangeInput | Action for out of range input | {'None'} | 'Warning' | 'Error' |
SampleTime | Sample time (-1 for inherited) | string {'-1'} |
OutDataTypeStr | Index data type | string 'int8' | 'uint8' | 'int16' | 'uint16' | 'int32' | {'uint32'} |
Out2DataTypeStr | Fraction data type | string {'Inherit: Inherit via internal rule'} | 'double' | 'single' |
LockScale | Lock output scaling against changes by the autoscaling tool | 'on' | {'off'} |
RndMeth | Round integer calculations toward | 'Zero' | 'Nearest' | 'Ceiling' | {'Floor'} | 'Simplest' |
Sine (Sine) (masked subsystem) | ||
Formula | Output formula | {'sin(2*pi*u)'} | 'cos(2*pi*u)' | 'exp(j*2*pi*u)' | 'sin(2*pi*u) and cos(2*pi*u)' |
NumDataPoints | Number of data points for lookup table | string {'(2^5)+1'} |
OutputWordLength | Output word length | string {'16'} |
Math Operations Library Block Parameters
| Block (Type)/Parameter | Dialog Box Prompt | Values |
|---|---|---|
Abs (Abs) | ||
ZeroCross | Enable zero-crossing detection | {'on'} | 'off' |
SampleTime | Sample time (-1 for inherited) | string {'-1'} |
OutMax | Output maximum | string {'[]'} |
OutDataTypeStr | Output data type | string 'Inherit: Inherit via internal rule' | 'Inherit: Inherit via back propagation' | {'Inherit: Same as input'} | 'double' | 'single' | 'int8' | 'uint8' | 'int16' | 'uint16' | 'int32' | 'uint32' |
LockScale | Lock output scaling against changes by the autoscaling tool | 'on' | {'off'} |
RndMeth | Round integer calculations toward | 'Zero' | 'Nearest' | 'Ceiling' | {'Floor'} |
SaturateOnInteger | Saturate on integer overflow | 'on' | {'off'} |
Add (Sum) | ||
IconShape | Icon shape | {'rectangular'} | 'round' |
Inputs | List of signs | string {'++'} |
CollapseMode | Sum over | {'All dimensions'} | 'Specified dimension' |
CollapseDim | Dimension | string {'1'} |
InputSameDT | Require all inputs to have the same data type | 'on' | {'off'} |
AccumDataTypeStr | Accumulator data type | string {'Inherit: Inherit via internal rule'} | 'Inherit: Same as first input' | 'double' | 'single' | 'int8' | 'uint8' | 'int16' | 'uint16' | 'int32' | 'uint32' |
OutMin | Output minimum | string {'[]'} |
OutMax | Output maximum | string {'[]'} |
OutDataTypeStr | Output data type | string {'Inherit: Inherit via internal rule'} | 'Inherit: Inherit via back propagation' | 'Inherit: Same as first input' | 'Inherit: Same as accumulator' | 'double' | 'single' | 'int8' | 'uint8' | 'int16' | 'uint16' | 'int32' | 'uint32' |
LockScale | Lock output scaling against changes by the autoscaling tool | 'on' | {'off'} |
RndMeth | Round integer calculations toward | 'Zero' | 'Nearest' | 'Ceiling' | {'Floor'} |
SaturateOnInteger | Saturate on integer overflow | 'on' | {'off'} |
SampleTime | Sample time (-1 for inherited) | string {'-1'} |
Algebraic Constraint (Algebraic Constraint) (masked subsystem) | ||
z0 | Initial guess | string {'0'} |
Assignment (Assignment) | ||
NumberOfDimensions | Number of input dimensions | string {'1'} |
IndexMode | Index mode | 'Zero-based' | {'One-based'} |
OutputInitialize | Initialize output (Y) | {'Initialize using input port <Y0>'} | 'Specify size for each dimension in table' |
Index Option | 'Assign all' | {'Index vector (dialog)'} | 'Index vector (port)' | 'Starting index (dialog)' | 'Starting index (port)' | |
Index | cell array | |
Output Size | cell array | |
DiagnosticForDimensions | Action if any output element is not assigned | 'Error' | 'Warning' | {'None'} |
SampleTime | Sample time (-1 for inherited) | string {'-1'} |
IndexOptions | See IndexOptionArray parameter for more information. | |
Indices | See IndexParamArray parameter for more information. | |
OutputSizes | See OutputSizeArray parameter for more information. | |
Bias (Bias) | ||
Bias | Bias | string {'0.0'} |
SaturateOnInteger | Saturate on integer overflow | 'on' | {'off'} |
Complex to Magnitude-Angle (ComplexToMagnitudeAngle) | ||
Output | Output | 'Magnitude' | 'Angle' | {'Magnitude and angle'} |
SampleTime | Sample time (-1 for inherited) | string {'-1'} |
Complex to Real-Imag (ComplexToRealImag) | ||
Output | Output | 'Real' | 'Imag' | {'Real and imag'} |
SampleTime | Sample time (-1 for inherited) | string {'-1'} |
Divide (Product) | ||
Inputs | Number of inputs | string {'*/'} |
Multiplication | Multiplication | {'Element-wise(.*)'} | 'Matrix(*)' |
InputSameDT | Require all inputs to have same data type | 'on' | {'off'} |
OutMin | Output minimum | string {'[]'} |
OutMax | Output maximum | string {'[]'} |
OutDataTypeStr | Output data type | string {'Inherit: Inherit via internal rule'} | 'Inherit: Inherit via back propagation' | 'Inherit: Same as first input' | 'double' | 'single' | 'int8' | 'uint8' | 'int16' | 'uint16' | 'int32' | 'uint32' |
LockScale | Lock output scaling against changes by the autoscaling tool | 'on' | {'off'} |
RndMeth | Round integer calculations toward | 'Zero' | 'Nearest' | 'Ceiling' | {'Floor'} | 'Simplest' |
SaturateOnInteger | Saturate on integer overflow | 'on' | {'off'} |
SampleTime | Sample time (-1 for inherited) | string {'-1'} |
Dot Product (Dot Product) (masked subsystem) | ||
InputSameDT | Require all inputs to have same data type | {'on'} | 'off' |
OutDataTypeStr | Output data type | string {'Inherit: Inherit via internal rule'} | 'Inherit: Inherit via back propagation' | 'Inherit: Same as first input' |
OutputDataTypeScaling | Deprecated | |
OutDataType | Deprecated | |
OutScaling | Deprecated | |
LockScale | Lock output scaling against changes by the autoscaling tool | 'on' | {'off'} |
RndMeth | Round integer calculation toward | 'Zero' | 'Nearest' | 'Ceiling' | {'Floor'} |
DoSatur | Saturate on integer overflow | 'on' | {'off'} |
Gain (Gain) | ||
Gain | Gain | string {'1'} |
Multiplication | Multiplication | {'Element-wise(K.*u)'} | 'Matrix(K*u)' | 'Matrix(u*K)' | 'Matrix(K*u) (u vector)' |
ParamMin | Parameter minimum | string {'[]'} |
ParamMax | Parameter maximum | string {'[]'} |
ParamDataTypeStr | Parameter data type | string {'Inherit: Inherit via internal rule'} | 'Inherit: Same as input' | 'double' | 'single' | 'int8' | 'uint8' | 'int16' | 'uint16' | 'int32' | 'uint32' |
OutMin | Output minimum | string {'[]'} |
OutMax | Output maximum | string {'[]'} |
OutDataTypeStr | Output data type | string {'Inherit: Inherit via internal rule'} | 'Inherit: Inherit via back propagation' | 'Inherit: Same as input' | 'double' | 'single' | 'int8' | 'uint8' | 'int16' | 'uint16' | 'int32' | 'uint32' |
LockScale | Lock output scaling against changes by the autoscaling tool | 'on' | {'off'} |
RndMeth | Round integer calculations toward | 'Zero' | 'Nearest' | 'Ceiling' | {'Floor'} |
SaturateOnInteger | Saturate on integer overflow | 'on' | {'off'} |
SampleTime | Sample time (-1 for inherited) | string {'-1'} |
Magnitude-Angle to Complex (MagnitudeAngleToComplex) | ||
Input | Input | 'Magnitude' | 'Angle' | {'Magnitude and angle'} |
ConstantPart | string {'0'} | |
SampleTime | Sample time (-1 for inherited) | string {'-1'} |
Math Function (Math) | ||
Operator | Function | {'exp'} | 'log' | '10^u' | 'log10' | 'magnitude^2' | 'square' | 'sqrt' | 'pow' | 'conj' | 'reciprocal' | 'hypot' | 'rem' | 'mod' | 'transpose' | 'hermitian' |
OutputSignalType | Output signal type | {'auto'} | 'real' | 'complex' |
SampleTime | Sample time (-1 for inherited) | string {'-1'} |
OutMin | Output minimum | string {'[]'} |
OutMax | Output maximum | string {'[]'} |
OutDataTypeStr | Output data type | string 'Inherit: Inherit via internal rule' | 'Inherit: Inherit via back propagation' | {'Inherit: Same as first input'} | 'double' | 'single' | 'int8' | 'uint8' | 'int16' | 'uint16' | 'int32' | 'uint32' |
LockScale | Lock output scaling against changes by the autoscaling tool | 'on' | {'off'} |
RndMeth | Round integer calculations toward | 'Zero' | 'Nearest' | 'Ceiling' | {'Floor'} |
SaturateOnInteger | Saturate on integer overflow | {'on'} | 'off' |
Matrix Concatenate (Concatenate) | ||
NumInputs | Number of inputs | string {'2'} |
Mode | Mode | 'Vector' | {'Multidimensional array'} |
ConcatenateDimension | Concatenate dimension | string {'2'} |
MinMax (MinMax) | ||
Function | Function | {'min'} | 'max' |
Inputs | Number of input ports | string {'1'} |
InputSameDT | Require all inputs to have the same data type | 'on' | {'off'} |
OutMin | Output minimum | string {'[]'} |
OutMax | Output maximum | string {'[]'} |
OutDataTypeStr | Output data type | string {'Inherit: Inherit via internal rule'} | 'Inherit: Inherit via back propagation' | 'double' | 'single' | 'int8' | 'uint8' | 'int16' | 'uint16' | 'int32' | 'uint32' |
LockScale | Lock output scaling against changes by the autoscaling tool | 'on' | {'off'} |
RndMeth | Round integer calculations toward | 'Zero' | 'Nearest' | 'Ceiling' | {'Floor'} |
SaturateOnInteger | Saturate on integer overflow | 'on' | {'off'} |
ZeroCross | Enable zero-crossing detection | {'on'} | 'off' |
SampleTime | Sample time (-1 for inherited) | string {'-1'} |
MinMax Running Resettable (MinMax Running Resettable) (masked subsystem) | ||
Function | Function | {'min'} | 'max' |
vinit | Initial condition | string {'0.0'} |
Permute Dimensions (Permute Dimensions) (masked subsystem) | ||
Order | Order | string {'[]'} |
Polynomial (Polyval) (masked subsystem) | ||
coefs | Polynomial coefficients | string {'[ +2.081618890e-019, -1.441693666e-014, +4.719686976e-010, -8.536869453e-006, +1.621573104e-001, -8.087801117e+001 ]'} |
Product (Product) | ||
Inputs | Number of inputs | string {'2'} |
Multiplication | Multiplication | {'Element-wise(.*)'} | 'Matrix(*)' |
CollapseMode | Multiply over | {'All dimensions'} | 'Specified dimension' |
CollapseDim | Dimension | string {'1'} |
InputSameDT | Require all inputs to have same data type | 'on' | {'off'} |
OutMin | Output minimum | string {'[]'} |
OutMax | Output maximum | string {'[]'} |
OutDataTypeStr | Output data type | string {'Inherit: Inherit via internal rule'} | 'Inherit: Inherit via back propagation' | 'Inherit: Same as first input' | 'double' | 'single' | 'int8' | 'uint8' | 'int16' | 'uint16' | 'int32' | 'uint32' |
LockScale | Lock output scaling against changes by the autoscaling tool | 'on' | {'off'} |
RndMeth | Round integer calculations toward | {'Zero'} | 'Nearest' | 'Ceiling' | 'Floor' | 'Simplest' |
SaturateOnInteger | Saturate on integer overflow | 'on' | {'off'} |
SampleTime | Sample time (-1 for inherited) | string {'-1'} |
Product of Elements (Product) | ||
Inputs | Number of inputs | string {'*'} |
Multiplication | Multiplication | {'Element-wise(.*)'} | 'Matrix(*)' |
CollapseMode | Multiply over | {'All dimensions'} | 'Specified dimension' |
CollapseDim | Dimension | string {'1'} |
InputSameDT | Require all inputs to have same data type | 'on' | {'off'} |
OutMin | Output minimum | string {'[]'} |
OutMax | Output maximum | string {'[]'} |
OutDataTypeStr | Output data type | string {'Inherit: Inherit via internal rule'} | 'Inherit: Inherit via back propagation' | 'Inherit: Same as first input' | 'double' | 'single' | 'int8' | 'uint8' | 'int16' | 'uint16' | 'int32' | 'uint32' |
LockScale | Lock output scaling against changes by the autoscaling tool | 'on' | {'off'} |
RndMeth | Round integer calculations toward | 'Zero' | 'Nearest' | 'Ceiling' | {'Floor'} | 'Simplest' |
SaturateOnInteger | Saturate on integer overflow | 'on' | {'off'} |
SampleTime | Sample time (-1 for inherited) | string {'-1'} |
Real-Imag to Complex (RealImagToComplex) | ||
Input | Input | 'Real' | 'Imag' | {'Real and imag'} |
ConstantPart | string {'0'} | |
SampleTime | Sample time (-1 for inherited) | string {'-1'} |