bandwidth

Lower and upper matrix bandwidth.

Syntax

  • [lower, upper] = bandwidth(A)

  • R = bandwidth(A, type)

Input argument

  • A - Input matrix

  • type - 'upper' or 'lower'

Output argument

  • lower, upper - lower bandwidth,

  • R - lower or upper bandwidth.

Description

[lower, upper] = bandwidth(A) returns lower and upper bandwidths of matrix A.

Example

M = [10 -20 40; -50 20 0; 10 0 30]
[lower, upper] = bandwidth(M)

See also

isbanded.

History

Author

Allan CORNET

Last updated