MATLAB: How to plot some plots with error bar in one figure

errorbarplot

x = 0:0.5:2*pi;
err1 = x/30;
err2 = x/30;
y1 = sin (x);
y2 = cos (x);

Best Answer

x = 0:0.5:2*pi;
err1 = x/30;
err2 = x/30;
y1 = sin (x);
y2 = cos (x);
errorbar(y1,err1)
hold on
errorbar(y2,err2)
Screen Shot 2018-11-29 at 1.44.55 PM.png
Related Question