FUNCTION REFERENCE

pol2cart

Polar or cylindrical to Cartesian coordinates.

Polar or cylindrical to Cartesian coordinates.

Syntax

[x, y] = pol2cart(theta, rho)

Syntax

[x, y, z] = pol2cart(theta, rho, z)

x is rho.*cos(theta) and y is rho.*sin(theta). Inputs must have the same size, or be scalar. z is passed through unchanged.

Example

[x, y] = pol2cart(pi/2, 2); [x y]   % [0.0000 2.0000]

Differences from MATLAB: Real double inputs only; complex, character, logical and cell input stop with an error.

These are the engine’s help pages. Each page keeps its compatibility notes. File operations are unavailable in the browser.