Convert polar/cylindrical coordinates to cartesian
[XX, YY] = pol2cart(theta, rho) [XX, YY, ZZ] = pol2cart(theta, rho, z)
Angular coordinate relative to the X-axis. Must have the same size as rho.
Radial coordinate (distance to pole). Must have the same size as theta.
Elevation coordinate. Must be a scalar or have the same size as theta.
Cartesian coordinates.
For real scalars, vectors or matrices theta and rho (polar coordinates), pol2cart(theta, rho) returns Cartesian XX and YY coordinates.
For real scalars, vectors or matrices theta, rho and z (cylindrical coordinates), pol2cart(theta, rho, z) returns Cartesian XX, YY and ZZ coordinates. If z is a scalar then ZZ is expanded to the same size as theta.
| Version | Description |
| 2025.1.0 | Introduction in Scilab. |