Solving a tridiagonal matrix in matlab using Thomas algorithm

조회 수: 71 (최근 30일)
Arko Dey
Arko Dey 2021년 10월 22일
답변: Steven Lord 2021년 10월 22일
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
Jan
Jan 2021년 10월 22일
편집: Jan 2021년 10월 22일
There is no "s" in the formula.
20x20 and 40x40 are not "large". The algorithms do not differ for small and large matrices.

댓글을 달려면 로그인하십시오.

답변 (1개)

Steven Lord
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 (\).

카테고리

Help CenterFile Exchange에서 Logical에 대해 자세히 알아보기

제품

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by