earth colors plot in 3D

조회 수: 50 (최근 30일)
Khoder Makkawi
Khoder Makkawi 2023년 3월 20일
편집: Adam Danz 2023년 3월 20일
xc = 0;
yc = 0;
zc = 0;
xr = 6378.1370*1000; % radius in km
yr = 6356.7523*1000; % radius in km
zr = 6371.0088*1000; % radius in km
[X,Y,Z] = ellipsoid(xc,yc,zc,xr,yr,zr);
surf(X,Y,Z,'EdgeColor','none');
hold on
plot3( data(1,:), data(2,:), data(3,:), 'g' );
xlabel( 'X' );
ylabel( 'Y' );
zlabel( 'Z' );
title( 'orbit' );
using this code I am able to plot the earth (as ellipsoid with the capability to change the coordinates of the center and the radius) and the orbit (in the attached file). The results can be seen in the figures attached.
My question is: How can I change the color of what called the earth to take the real color of the earth ?
I saw in this link (Plotting a 3-D Dome as a Mesh over a Globe - MATLAB & Simulink Example - MathWorks France) that I can plot the real color of the earth by loading these : "topo60c", and "coastlines". But I am receiving this message "Unable to find file or directory 'topo60c'.". I tried to download this toolbox but I didn't succedd to find it (if it is a toolbox).
Is there a way to plot the real shape of earth ?
Thank you

채택된 답변

Adam Danz
Adam Danz 2023년 3월 20일
편집: Adam Danz 2023년 3월 20일
> How can I change the color of what called the earth to take the real color of the earth ? - without the mapping toolbox
This File Exchange function wraps an image of earth acround a sphere.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Earth and Planetary Science에 대해 자세히 알아보기

제품


릴리스

R2022a

Community Treasure Hunt

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

Start Hunting!

Translated by