pol2cart
[x,y] = pol2cart(theta,rho)
[x,y,z] = pol2cart(theta,rho,z)
[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.
theta = 0:.01:2
*pi;
rho = sin(2
*theta).
*cos(2
*theta);
polar(theta,rho)
[x,y] = pol2cart(theta,rho);
plot(x,y)
See Alsocart2pol
,cart2sph
,sph2cart
(c) Copyright 1994 by The MathWorks, Inc.