Solving a tridiagonal matrix in matlab using Thomas algorithm
71 次查看(过去 30 天)
显示 更早的评论
Hello I have this tridiagonal matrix.
where r = 1/x, g= 1/x^2, s=ln(x)/x^2 and n represents the size.
I'm trying to solve this matrix in Matlab using the Thomas algorithm. I have found some online resources however they dont tend to deal with when n becomes very large, I need to solve matrices that are maybe 20 x 20 or 40 x 40 and so on.
Sorry for this vague description, I'm quite new to using matlab.
1 个评论
回答(1 个)
Steven Lord
2021-10-22
Is there a particular reason you need to solve this using that specific algorithm? Try using the normal backslash operator (\).
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Logical 的更多信息
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!