standard deviation problem
standard deviation problem
(OP)
Hi All,
I found the code below, where M is a three dimensional array and M is a matrix (the third dimension of M)
and I don't know what it means std(A(:))
Is the same as std(A) ie standard deviation of A matrix?
Thanks in advance
I found the code below, where M is a three dimensional array and M is a matrix (the third dimension of M)
CODE
A = M(:,:,1);
meanA = mean(mean(A));
stdA = std(A(:));
meanA = mean(mean(A));
stdA = std(A(:));
Is the same as std(A) ie standard deviation of A matrix?
Thanks in advance





RE: standard deviation problem
TTFN
RE: standard deviation problem
and I dont found
CODE
Thanks
RE: standard deviation problem
"If X is a matrix, std(X) returns a row vector containing the standard deviation of the elements of each column of X. If X is a multidimensional array, std(X) is the standard deviation of the elements along the first nonsingleton dimension of X."
So, obviously, std(A) is NOT the std of the matrix.
TTFN