<< balance Linear algebra chol >>

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


Version Description
1.0.0 initial version

Author


Allan CORNET

<< balance Linear algebra chol >>