Documentation

This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English verison of the page.

Note: This page has been translated by MathWorks. Please click here
To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.

meansqr

Mean of squared elements of matrix or matrices

Syntax

[m,n] = meansqr(x)

Description

[m,n] = meansqr(x) takes a matrix or cell array of matrices and returns,

m

Mean value of all squared finite values

n

Number of finite values

If x contains no finite values, the mean returned is 0.

Examples

m = meansqr([1 2;3 4])
[m,n] = meansqr({[1 2; NaN 4], [4 5; 2 3]})

See Also

| |

Introduced in R2010b

Was this topic helpful?