Main Content

Compute number of symbol errors and symbol error rate

`[`

compares the elements in `number`

,`ratio`

] = symerr(`x`

,`y`

)`x`

and `y`

. The sizes of
`x`

and `y`

determine which elements are
compared. The output `number`

is a scalar or vector that indicates
the number of elements that differ. The output `ratio`

equals
`number`

divided by the total number of elements in the
*smaller* input.

`[`

returns a binary matrix `number`

,`ratio`

,`individual`

] = symerr(...)`individual`

that indicates which elements
of `x`

and `y`

differ. An element of
`individual`

is zero if the corresponding comparison yields no
discrepancy, and one otherwise.