FUNCTION REFERENCE

isbanded

Test whether nonzero entries lie within a diagonal band.

Test whether nonzero entries lie within a diagonal band.

Syntax

tf = isbanded(A, lower, upper)

The lower and upper bandwidths must be nonnegative integer scalars. Empty matrices satisfy the test.

Example

isbanded([1 2 0; 3 4 5; 0 6 7], 1, 1)   % 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.