I have 365 (days) input for my graphic but in somewhere it is stop making graphics
It is my graphic result
Here, original graphic that I should get :
My whole code:
days = 1:365;%Formulas of the Equation of Time
earth_tilt = -7.655*sin(2*pi*days/365)elliptical_orbit = 9.873*sin(4*pi*days/365+3.588)time_variation = earth_tilt + elliptical_orbitplot(days,earth_tilt,'g--')hold onplot(days,elliptical_orbit,'r-.')plot(days,time_variation,'black')ax = gca;ax.XAxisLocation = 'origin';ax.XAxis.TickLabels = {'Jan','Feb','Mar','Apr','May','Jun','Jul','Aug','Sep','Oct','Nov','Dec'}';ax.XAxis.Limits = [0 500];title('Time Variation')xlabel('Day of The Year','FontWeight','bold')ylabel('Minutes','FontWeight','bold')legend({'Earth Elliptic Orbit','Tilt of Earth Axis','Orbit+Tilt'},'FontSize',14)% Location information of legend
set(legend, 'Location', 'NorthWest')
Best Answer