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!