FUNCTION REFERENCE

biterr

Count differing bits and compute bit error ratios.

Count differing bits and compute bit error ratios.

Syntax

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

Nonnegative integer inputs. Default k is the width of the largest value (at least 1). Same-size arrays default to overall comparison. Matrix/row-vector inputs default to row-wise comparison; matrix/column-vector inputs default to column-wise. Explicit 'overall', 'row-wise', 'column-wise' follow the public comparison table. individual contains per-pair bit counts with the larger input shape. Ratios divide each count by the bits compared for that count: k times the full expanded size for overall, k times the column count for row-wise, and k times the row count for column-wise. [] selects the default k.

Example

[n,r,i]=biterr([1 2;3 4],[1 3;0 4],3)

Differences from MATLAB: at most 64 bits per integer; empty input is rejected.

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