lat long radius to XYZ

17 ビュー (過去 30 日間)
Ahmed Abdulla
Ahmed Abdulla 2019 年 7 月 19 日
回答済み: Cong Dong Ngoc Minh 2021 年 10 月 15 日
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
lat_long_height.png
  3 件のコメント
David Goodmanson
David Goodmanson 2019 年 7 月 19 日
編集済み: David Goodmanson 2019 年 7 月 19 日
HI Ahmed,
Just looking at the small data set you posted,
entries 2 through 8 have the same longitude, varying latitude
entries 9 through 22 have the same longitude, varying latitude
etc. which describes vertical bands, which the plot is doing a good job of illustrating.
SaiDileep Kola
SaiDileep Kola 2019 年 7 月 29 日
Provide the data set and describe your expected figure.

サインインしてコメントする。

回答 (1 件)

Cong Dong Ngoc Minh
Cong Dong Ngoc Minh 2021 年 10 月 15 日
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).

カテゴリ

Help Center および File ExchangeSurface and Mesh Plots についてさらに検索

タグ

製品


リリース

R2019a

Community Treasure Hunt

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

Start Hunting!

Translated by