Block Tri-diagonal Matrix

28 Ansichten (letzte 30 Tage)
Neeladri Sekhar Bera
Neeladri Sekhar Bera am 11 Jul. 2020
Bearbeitet: John D'Errico am 11 Jul. 2020
In the process of a solvng a system of coupled pdes I have finally got a block tri-diagonal matrix. How to write the whole matrix in MATLAB. Is there any built in function to write such kind of block tri-diagonal matrix?

Akzeptierte Antwort

John D'Errico
John D'Errico am 11 Jul. 2020
Bearbeitet: John D'Errico am 11 Jul. 2020
It may be your lucky day. Just download my blktridiag code from the file exchange.
It is designed to create a sparse block tridiagonal array, exactly what you will want.

Weitere Antworten (0)

Kategorien

Mehr zu Operating on Diagonal Matrices finden Sie in Help Center und File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by