C Math Library Reference | ![]() ![]() |
Transform polar or cylindrical coordinates to Cartesian
C Prototype
mxArray *mlfPol2cart(mxArray **Y, mxArray **Z_out, mxArray *THETA, mxArray *RHO, mxArray *Z_in);
C Syntax
#include "matlab.h" mxArray *THETA, *RHO; /* Required input argument(s) */ mxArray *Z_in; /* Optional input argument(s) */ mxArray *Y = NULL; /* Required output argument(s) */ mxArray *Z_out = NULl; /* Optional output argument(s) */ mxArray *X = NULL; /* Return value */ mlfAssign(&X, mlfPol2cart(&Y,NULL,THETA,RHO,NULL)); mlfAssign(&X, mlfPol2cart(&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![]() | mlfPlanerot | mlfPoly | ![]() |