Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations waross on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

cart2sph not returning values fed into sph2cart

Status
Not open for further replies.

Jakanapes

Computer
Dec 1, 2004
1
We are attempting to prove some formulas that will be used in a java program by using matlab.

Part of the project is to transform spherical coords into cartesian and then back into spherical.

We have been having some trouble getting the same values back that we start with, so we looked to the functions sph2cart and cart2sph.

We are not getting the same values returned by cart2sph that we are putting into sph2cart.

Any suggestions?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor