rssq

Compute root sum squared values.

Syntax

r = rssq(x)

r = rssq(x,dim)

Inputs

x
Data sample.
Type: double
Dimension: scalar | vector | matrix
dim
Dimension on which to perform the calculation.
Default: first non-singleton dimension.
Type: integer
Dimension: scalar

Outputs

r
Root sum squared ratios.

Examples

Vector example:

x = [9.3, 10.6, 13.3, 15.1, 18.2, 11.9];
r = rssq(x)
r = 32.8115833
Matrix example:
x = [9.3, 4.8; 10.6, 6.6; 11.9, 8.0; 13.3, 9.3; 15.1, 10.6; 18.2, 11.9];
r = rssq(x)
r = [Matrix] 1 x 2
32.81158  21.70392

Comments

For complex signals, squared magnitudes are considered.