Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations cowski 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
Joined
Dec 1, 2004
Messages
1
Location
US
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

Back
Top