Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TugboatEng 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
Joined
Aug 16, 2006
Messages
2
Location
CA
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
 
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

Back
Top