<< mathieu_membrane_mode Mathieu mathieu_rad_ce >>

Mathieu >> Mathieu > mathieu_pol2cart

mathieu_pol2cart

Transform from polar (or cylindrical) coordinates to Cartesian.

Calling Sequence

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

Parameters

theta

polar angle.

rho

polar radius.

z

(optional) polar height.

x

Cartesian x.

y

Cartesian y.

z

(optional) Cartesian z.

Description

Transform from polar (or cylindrical) coordinates to Cartesian using the following formulas:

Examples

// draw a unit circle
theta = linspace(0, 2*%pi, 100);
[x, y] = mathieu_pol2cart(theta, 1);
polarplot(theta, sqrt(x.^2+y.^2));
plot(x, y, 'c:'); xgrid; h=gca(); h.isoview='on';
xtitle('From polar to Cartesian coordinates (unit circle)', 'x', 'y');
legend('polar','Cartesian');

See Also

Authors

R.Coisson and G. Vernizzi, Parma University

X. K. Yang

2011 - DIGITEO - Michael Baudin

N. O. Strelkov, NRU MPEI


Report an issue
<< mathieu_membrane_mode Mathieu mathieu_rad_ce >>