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 | This parameter defines if the block receives or inherits an external activation. When External Activation is used, an additional activation port is added to the block. Default is OFF. | 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 |