I use the STD function to evaluate the standard deviation of my data, using the following code:
X=[4 -2 1 9 5 7];std(X,2)
which generates the following error:
??? Error using ==> var W must be a vector of nonnegative weights, or a scalar 0 or 1. Error in ==> std at 32 y = sqrt(var(varargin{:}));
Best Answer