# 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.

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

NameLabelDescriptionData TypeValid Values

upper

Upper limit

Matrix

lower

Lower limit

Matrix

zc

Zero-crossing

Scalar

0
1

externalActivation

External activation

Number

0
1

## Ports

NameTypeDescriptionIO TypeNumber

Port 1

explicit

input

1

Port 2

explicit

output

1

Port 3

activation

input

externalActivation

NameValueDescription

always active

no

direct-feedthrough

yes

zero-crossing

yes

mode

no

continuous-time state

no

discrete-time state

no