Creating a tridiagonal matrix
显示 更早的评论
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 个评论
David Goodmanson
2019-11-11
Hi Aaron
check out the 'diag' function
Alex Treat
2020-10-30
coughs you were in the mec 103 class at CSU...
采纳的回答
更多回答(0 个)
类别
在 帮助中心 和 File Exchange 中查找有关 Operating on Diagonal Matrices 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!