Creating a tridiagonal matrix
Ältere Kommentare anzeigen
I am currently trying to create a 500*500 matrix in matlab with diagonals a=-1, b=4, c=2. My teacher has said that the best way to go about it is using loops, but is there a coded in function to use?
2 Kommentare
David Goodmanson
am 11 Nov. 2019
Hi Aaron
check out the 'diag' function
Alex Treat
am 30 Okt. 2020
coughs you were in the mec 103 class at CSU...
Akzeptierte Antwort
Weitere Antworten (0)
Kategorien
Mehr zu Operating on Diagonal Matrices finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!