Hi,
i would like to plot a variation of field on 24hours with a 3hours spacing like 00 03 06 09...21 24
and i use linspace because my vectors have different length. when i plot, I get 0 5 10 ... 25 on the time axis with a 5hours spacing.
here is my script
H0 = mean(H004(1:120)) + mean(H004(1321:1440));
H0 = H0/2;
dH004 = H004 - H0;
t = linspace(00,23,1440);
plot(t,dH004);
xlabel('LT(hrs)');
ylabel('Variation field dH(nT)');
title('dH')
2 Comments
Direct link to this comment
https://de.mathworks.com/matlabcentral/answers/593314-how-can-i-plot-2-vectors-with-different-lenght-and-with-a-spacing-of-3hours-on-the-time-axis#comment_1008097
Direct link to this comment
https://de.mathworks.com/matlabcentral/answers/593314-how-can-i-plot-2-vectors-with-different-lenght-and-with-a-spacing-of-3hours-on-the-time-axis#comment_1008097
Direct link to this comment
https://de.mathworks.com/matlabcentral/answers/593314-how-can-i-plot-2-vectors-with-different-lenght-and-with-a-spacing-of-3hours-on-the-time-axis#comment_1008388
Direct link to this comment
https://de.mathworks.com/matlabcentral/answers/593314-how-can-i-plot-2-vectors-with-different-lenght-and-with-a-spacing-of-3hours-on-the-time-axis#comment_1008388
Sign in to comment.