Skip to Main Content Skip to Search
Product Documentation

mean2 - Average or mean of matrix elements

Syntax

B = mean2(A)

Description

B = mean2(A) computes the mean of the values in A.

Class Support

The input image A can be numeric or logical. The output image B is a scalar of class double.

Algorithms

mean2 computes the mean of an array A using mean(A(:)).

See Also

mean | std | std2

  


Recommended Products

Includes the most popular MATLAB recorded presentations with Q&A sessions led by MATLAB experts.

 © 1984-2012- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS