How do i get these 2 plots on 1 axes? Right now i plot running average but datas over writes it i would like to have them on the same axes
14 views (last 30 days)
Show older comments
global datas;
global runningAverage;
x=0:135:17145;
% Create plot
plot(x,runningAverage,'Color',[1 0 0],'DisplayName','average');
% Create plot
plot(datas.data,'DisplayName','data');
m={'19','20','21','22','23','24','0','1','2','3','4','5','6','7','8','9','10','11','12','13','14','15','16','17','18'};
e=[0 750 1500 2250 3000 3750 4500 5250 6000 6750 7500 8250 9000 9750 10500 11250 12000 12750 13500 14250 15000 15750 16500 17250 18000];
set(handles.axes4,'YMinorTick','on','XTick',e,'XTicklabel',m);
xlabel('Time (Hours)EST');
ylabel('VLF Wave Strenth(Watts)');
0 Comments
Accepted Answer
More Answers (1)
See Also
Categories
Find more on 2-D and 3-D Plots in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!