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

NameLabelDescriptionData TypeValid Values

convtyp

Conversion type

Type of conversion to apply. Available options are: CartesianToPolar and PolarToCartesian

Structure

convtyp/CtoP

Cartesian to Polar

Number

0
1

convtyp/PtoC

Polar to Cartesian

Number

0
1

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
1

Ports

NameTypeDescriptionIO TypeNumber

x

explicit

input

1

y

explicit

input

2

&amp;#x3c1;

explicit

output

1

&amp;#x3b8;

explicit

output

2

Port 5

activation

input

externalActivation

NameValueDescription

always active

no

direct-feedthrough

yes

zero-crossing

no

mode

no

continuous-time state

no

discrete-time state

no