MATLAB: How to plot the graph showing different data points within restricted boundary of sigma level

grap

i want to draw graph between y and x. Y consists of different data values and x is time. graph also include two boundary i.e (sigma level) 3 sigma and 1 sigma.As per reference i had attached the picture with it. how to draw this graph in matlab

Best Answer

aH = axes;
plot(aH,rand(100,1),'k.'); hold on;
sigma1 = 0.2;
sigma3 = 0.8;
plot(aH, aH.XLim, [sigma1, sigma1], 'k-');
plot(aH, aH.XLim, [sigma3, sigma3], 'k-');