CartesianToPolar

This block converts Polar coordinates to Cartesian coordinates or vice versa.

    CartesianToPolar

Library

Activate/SignalConversions

Description

The CartesianToPolar block converts polar coordinates to Cartesian coordinates or vice versa.

The angle for polar coordinates is measured in radians.

Parameters

CartesianToPolar_0

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

ρ

explicit

output

1

θ

explicit

output

2

Port 5

activation

input

externalActivation

Advanced Properties

NameValueDescription

always active

no

direct-feedthrough

yes

zero-crossing

no

mode

no

continuous-time state

no

discrete-time state

no