Create banded matrix from arbitrary real square matrix
Versión 1.0.0 (2,89 KB) por
Michael Hubatka
Create a banded matrix B with bandwidth bw from an arbitrary real square matrix A
Create a banded matrix B with bandwidth bw from an arbitrary real square matrix A using a similarity transformation.
[B, T, Ti] = banddiag(A, bw) produces a banded matrix B with bandwidth bw and the similarity transformation matrix T and its inverse Ti so that B = T*A*Ti and T*Ti = I. The matrix B has nonzero entries only on the main diagonal and bw diagonals on either side.
The Algorithm uses successive QR steps to reduce the input matrix A to a banddiagonal structure.
The bandwidth bw is an integer with bw > 0. For b == 1, the matrix B becomes tridiagonal and for bw >= n-1, the matrix B is equal to A.
Citar como
Michael Hubatka (2026). Create banded matrix from arbitrary real square matrix (https://es.mathworks.com/matlabcentral/fileexchange/133177-create-banded-matrix-from-arbitrary-real-square-matrix), MATLAB Central File Exchange. Recuperado .
Compatibilidad con la versión de MATLAB
Se creó con
R2022a
Compatible con cualquier versión desde R2019b
Compatibilidad con las plataformas
Windows macOS LinuxEtiquetas
Agradecimientos
Inspirado por: Tridiagonalize arbitrary real square matrices
Descubra Live Editor
Cree scripts con código, salida y texto formateado en un documento ejecutable.
| Versión | Publicado | Notas de la versión | |
|---|---|---|---|
| 1.0.0 |
