Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations waross on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

standard deviation problem

Status
Not open for further replies.

roco1

Computer
Aug 16, 2006
2
Hi All,

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(:));
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
 
Replies continue below

Recommended for you

Have you bothered to read the help file entry for std?

TTFN



 
from your link:

"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



 
Status
Not open for further replies.

Part and Inventory Search

Sponsor