can anybody please help me to define this?
1 次查看(过去 30 天)
显示 更早的评论
Actually I am looking for a speacial function in matlab which I can use to define this matrix. I have used it in past but now I don't remember it. It is a builtin functino to define these sort of matrices.
If anybody can help me pls...
Thanks
0 个评论
回答(1 个)
John D'Errico
2020-5-13
Special? Not really.
help diag
2 个评论
Steven Lord
2020-5-13
If the matrix is going to be large and all the values above and below those three diagonals are 0, consider spdiags to make this as a sparse matrix.
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Creating and Concatenating Matrices 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!