CartesianToPolar

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

    CartesianToPolar

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

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

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
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