Hi. can you help me to plot orbit around Earth with sphere in MATLAB?
I wrote the code that plot 3D orbit but without earth.
the code:
clear all
close all
clc
R=6371e+3;
r0=3e+5;
p0=[R+r0;0;0;0;10000;0];
[t,p]=ode45(@sattelite,[0,12000],p0);
xout=p(:,1);
yout=p(:,2);
zout=p(:,3);
vx=p(:,4)...