rms
Root mean square value
Description
returns
the root mean square (RMS) value of the input, y
= rms(x
)x
.
If
x
is a row or column vector, theny
is a real-valued scalar.If
x
is a matrix, theny
is a row vector containing the RMS value for each column.If
x
is a multidimensional array, theny
contains the RMS values computed along the first array dimension whose size does not equal 1. The size ofy
in this dimension is1
, while the sizes of all other dimensions remain the same as inx
.
returns the RMS value of all elements in y
= rms(x
,"all")x
.