MATLAB: Plot and calculate error bar

error bar

I want to calculate and plot error bar of this data
X=40:1:225;
Y =0;0; 0......
Y is the results from calculating.
plot(X,Y)
and plot error bar
Thanks

Best Answer

It's really difficult to provide any further help without you offering a more thorough description of your problem, but the errorbar function will plot your curve with confidence intervals that you specify. As for the specific values of the error itself, that's really up to what measurement of error is appropriate for your situation.
Related Question