Bias
The Bias block adds a constant to the input to produce the output.
![]()
Library
Activate/MathOperations
Description
The Bias block adds a constant to the input to produce the output.
Output is computed as follows: y = u + Bias , where Bias is the block parameter.
The Bias can be a scalar or a matrix. If a matrix, its size must match the size of the block input.
Parameters

| Name | Label | Description | Data Type | Valid Values |
|---|---|---|---|---|
b | Bias | The Bias is a real value.The Bias can be a scalar or a matrix. If a matrix, its size must match the size of the block input. | Matrix | |
over | Do on overflow | String | 'Nothing' | |
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 | no | |
mode | no | |
continuous-time state | no | |
discrete-time state | no |