FUNCTION REFERENCE

bandwidth

Find the lower and upper matrix bandwidth.

Find the lower and upper matrix bandwidth.

Syntax

[lower, upper] = bandwidth(A); b = bandwidth(A, 'lower'|'upper')

Bandwidth is the greatest distance from the main diagonal to a nonzero entry. One output without an option returns the lower bandwidth. Zero and empty matrices have bandwidth zero.

Example

[lo, up] = bandwidth([1 2; 0 3]); [lo up]   % [0 1]

Differences from MATLAB: No N-D arrays.

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