Creating a tridiagonal matrix
Mostrar comentarios más antiguos
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 comentarios
David Goodmanson
el 11 de Nov. de 2019
Hi Aaron
check out the 'diag' function
Alex Treat
el 30 de Oct. de 2020
coughs you were in the mec 103 class at CSU...
Respuesta aceptada
Más respuestas (0)
Categorías
Más información sobre Operating on Diagonal Matrices en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!