# ``pol2cart

## Purpose

Transform polar coordinates to Cartesian.

## Synopsis

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

## Description

`[x,y] = pol2cart(theta,rho)` transforms data stored in polar coordinates to Cartesian, or xy, coordinates. `theta` and `rho` must be the same size. `theta` is in radians.

`[x,y,z] = pol2cart(theta,rho,z)` transforms data stored in cylindrical coordinates to Cartesian coordinates. `theta`, `rho`, and `z` must all be the same size.

## Example

    theta = 0:.01:2*pi;
    rho = sin(2*theta).*cos(2*theta);
    polar(theta,rho)

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

## ``See Also

    cart2pol, cart2sph, sph2cart

(c) Copyright 1994 by The MathWorks, Inc.