How can I plot Earth (wgs84 Ellipsoid)?

조회 수: 121(최근 30일)
Matthes Müller
Matthes Müller 2017년 11월 27일
댓글: Matthes Müller 2017년 12월 13일
I have tried
[x,y,z] = wgs84Ellipsoid('meters');
figure
surf(x,y,z)
axis equal
However,
[x,y,z] = wgs84Ellipsoid('meters');
is incorrect ("Too many output arguments")
  댓글 수: 2
Matthes Müller
Matthes Müller 2017년 11월 30일
Alright, thanks a lot anyway!

댓글을 달려면 로그인하십시오.

채택된 답변

Amy Haskins
Amy Haskins 2017년 12월 12일
To just get a sense for the shape of the ellipsoid, you could use the values from the wgs84ellipsoid in conjunction with MATLAB's ellipsoid function as follows:
ellipsoid(0,0,0,E.SemimajorAxis, E.SemimajorAxis, E.SemiminorAxis)
Alternatively, if you want a 3D globe, you could follow the doc example here:
https://www.mathworks.com/help/map/examples/plotting-a-3-d-dome-as-a-mesh-over-a-globe.html
Replacing the grs80 ellipsoid with the one returned by wgs84Ellipsoid.
  댓글 수: 1
Matthes Müller
Matthes Müller 2017년 12월 13일
Perfect, thank you!

댓글을 달려면 로그인하십시오.

추가 답변(0개)

Community Treasure Hunt

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

Start Hunting!

Translated by