Why do I receive an error when I use the STD function in MATLAB 7.0 (R14)?
Show older comments
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{:}));
Accepted Answer
More Answers (0)
Categories
Find more on Matrix Indexing in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!