Hypot
This block implements the hypot(u1,u2) function applied to each entry of input matrices to produce the corresponding output. Hypot calculates the length of the hypotenuse of a right-angle triangle. Mixed matrix/scalar input is allowed.
Library
MathOperations
Description
The Hypot block implements the hypot(u1,u2) function applied to each entry of input matrices to produce the corresponding output. Hypot calculates the length of the hypotenuse of a right-angle triangle. Mixed matrix/scalar input is allowed.
Parameters
Name | Label | Description | Data Type | Valid Values |
---|---|---|---|---|
externalActivation | External activation | Specifies whether the block receives an external activation or inherits its activation through its regular input ports. When External Activation is selected, an additional activation port is added to the block. By default, external activation is not selected. | Number | 0 |
Ports
Name | Type | Description | IO Type | Number |
---|---|---|---|---|
Port 1 | explicit | output | 1 | |
Port 2 | explicit | The first argument (u1) supplied to hypot function. | input | 1 |
Port 3 | explicit | The second argument (u2) supplied to hypot function. | input | 2 |
Port 4 | 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 |