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!