I am using the ERRORBAR function in MATLAB 6.5 (R13):
X = 0:pi/10:pi;Y = sin(X);E = std(Y)*ones(size(X));errorbar(X,Y,E,'LineWidth',3);
On executing this code I receive the following error:
??? Error using ==> errorbar The sizes of X, Y, L and U must be the same.
I do not receive this error while using the PLOT or the PLOT3 functions in MATLAB 6.5 (R13).
Best Answer