MATLAB: Problem with error bar

error bar

Hi. I want to use errorbar(x,y,std) to get the error bar. I was wondering if x and y are vectors with 10 data point each. how do I write the code for std to have the same matching (10X1) dimension. Thanks

Best Answer

e = std(y)*ones(size(y));