FUNCTION REFERENCE

symerr

Count differing symbols and compute symbol error ratios.

Count differing symbols and compute symbol error ratios.

Syntax

[number,ratio,individual] = symerr(x,y,flg)

Same-size arrays default to overall comparison. Matrix/row or column vectors compare each row or column. Flags: 'overall', 'row-wise', 'column-wise'. Ratios divide each count by its comparison size; overall broadcasting divides by the full expanded size, matching the public worked example (3/4). Row-wise and column-wise divide by the column and row counts respectively. individual is logical with the larger input shape.

Example

[n,r,i]=symerr([1 2;3 4],[1 3],'overall')

Differences from MATLAB: empty input is rejected. Real and complex numeric symbols are accepted.

These are the engine’s help pages. Each page keeps its compatibility notes. File operations are unavailable in the browser.