lat long radius to XYZ

8 views (last 30 days)
Ahmed Abdulla
Ahmed Abdulla on 19 Jul 2019
i have the following matrix that contains latitude, longitude and radius of a planet and i would like to convert to xyz and plot it in 3d but when i use the sph2cart function and then i plot xyz i get the picture below it seems to becoming out as bands XYZ plot.PNG
SaiDileep Kola
SaiDileep Kola on 29 Jul 2019
Provide the data set and describe your expected figure.

Sign in to comment.

Answers (1)

Cong Dong Ngoc Minh
Cong Dong Ngoc Minh on 15 Oct 2021
From my perspective, Latitude and Longitude should be converted from degree to radians first, after that using the sph2cart function to transfor to cartesian coordinate (x,y,z).


Find more on Geographic Plots in Help Center and File Exchange





Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!