Plotting Error Bars in MATLAB
Error bars are a way of plotting errors on each point in a data set as vertical bars in a linear plot. MATLAB provides a simple function to plot the error bars for a given data; the errorbar() function. Syntax:errorbar(x,y,errors,...) Where, x - contains x datay- contains y dataerror - contains err