mean
Return average or mean values in DataMatrix object
Syntax
M = mean(DMObj)
M = mean(DMObj, Dim)
M = mean(DMObj, Dim, IgnoreNaN)
Input Arguments
| DMObj | DataMatrix object, such as created by  | 
| Dim | Scalar specifying the dimension of  
 | 
| IgnoreNaN | Specifies if NaNs should be ignored. Choices are  | 
Output Arguments
| M | Either of the following: 
 | 
Description
M = mean(DMObj)M is a
row vector containing the mean values for elements in each column
in DMObj.
M = mean(DMObj, Dim)Dim. If Dim = 1,
returns M, a row vector containing the
mean values for elements in each column in DMObj.
If Dim = 2, returns M,
a column vector containing the mean values for elements in each row
in DMObj. Default Dim = 1.
M = mean(DMObj, Dim, IgnoreNaN)IgnoreNaN can
be true (default) or false.
Version History
Introduced in R2008b
See Also
DataMatrix | max | median | min | sum