The ERROR is found in SPH2CART2D function help (package matgeom, Octave 6.1).
Namely, wrong order of input args is pointed out in the second variant of SPH2CART2D function call.
The correct order of the input args in both cases are similar:
- [X, Y, Z] = SPH2CART2(THETA, PHI, RHO);
- C = SPH2CART2(S); # where S = [THETA PHI RHO] and C = [X Y Z]