CartesianToPolar
This block converts Polar coordinates to Cartesian coordinates or vice versa.
Library
SignalConversions
Description
The CartesianToPolar block converts polar coordinates to Cartesian coordinates or vice versa.
The angle for polar coordinates is measured in radians.
Parameters
Name | Label | Description | Data Type | Valid Values |
---|---|---|---|---|
convtyp | Conversion type | Type of conversion to apply. Available options are: CartesianToPolar and PolarToCartesian | Structure | |
convtyp/CtoP | Cartesian to Polar | Number | 0 | |
convtyp/PtoC | Polar to Cartesian | Number | 0 | |
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 |
---|---|---|---|---|
x | explicit | input | 1 | |
y | explicit | input | 2 | |
ρ | explicit | output | 1 | |
θ | explicit | output | 2 | |
Port 5 | 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 |