C++ Math Library Reference | ![]() ![]() |
Transform polar or cylindrical coordinates to Cartesian
C++ Prototype
mwArray pol2cart(mwArray *Y, const mwArray &THETA, const mwArray &RHO); mwArray pol2cart(mwArray *Y, mwArray *Z_out, const mwArray &THETA, const mwArray &RHO, const mwArray &Z_in);
C++ Syntax
#include "matlab.hpp" mwArray THETA, RHO, Z_in; // Input argument(s) mwArray Y, Z_out; // Output argument(s) mwArray X; // Return value X = pol2cart(&Y,THETA,RHO); X = pol2cart(&Y,&Z_out,THETA,RHO,Z_in);
MATLAB Syntax
[X,Y] = pol2cart(THETA,RHO) [X,Y,Z] = pol2cart(THETA,RHO,Z)
See Also
pol2cart
Calling Conventions![]() | planerot | poly | ![]() |