| C++ Math Library Reference | ![]() |
Transform spherical coordinates to Cartesian
C++ Prototype
mwArray sph2cart(mwArray *y, mwArray *z, const mwArray &THETA, const mwArray &PHI, const mwArray &R);
C++ Syntax
#include "matlab.hpp" mwArray THETA, PHI, R; // Input argument(s) mwArray y, z; // Output argument(s) mwArray x; // Return value x = sph2cart(&y,&z,THETA,PHI,R);
MATLAB Syntax
[x,y,z] = sph2cart(THETA,PHI,R)
See Also
sph2cart Calling Conventions | spfun | spline | ![]() |