Saturation
This block bounds upper and lower values of a signal. When the input signal is within the range specified by the Lower limit and Upper limit parameters, the input signal passes through unchanged. When the input signal is outside these bounds, the signal is set to the upper or lower bound. When the Lower limit and Upper limit parameters are set to the same value, the block outputs that value.
Library
Hybrid
Description
The Saturation block bounds upper and lower values of a signal. When the input signal is within the range specified by the Lower limit and Upper limit parameters, the input signal passes through unchanged.
When the input signal is outside these bounds, the signal is set to the upper or lower bound. When the Lower limit and Upper limit parameters are set to the same value, the block outputs that value.
The saturation block parameters specify the lower and upper bounds of the saturation function applied to the input signal. If a bound is applied on one side (upper or lower), the other bound can be set to infinity. So, a value of infinity as bound means no bound.
The input data type should be double.
Parameters
Name | Label | Description | Data Type | Valid Values |
---|---|---|---|---|
upper | Upper limit | Matrix | ||
lower | Lower limit | Matrix | ||
zc | Zero-crossing | Scalar | 0 | |
externalActivation | External activation | Number | 0 |
Ports
Name | Type | Description | IO Type | Number |
---|---|---|---|---|
Port 1 | explicit | input | 1 | |
Port 2 | explicit | output | 1 | |
Port 3 | activation | input | externalActivation |
Advanced Properties
Name | Value | Description |
---|---|---|
always active | no | |
direct-feedthrough | yes | |
zero-crossing | yes | |
mode | no | |
continuous-time state | no | |
discrete-time state | no |