Solution Using Jacobi and Gauss Seidel Method.

조회 수: 6 (최근 30일)
Pranjal Pathak
Pranjal Pathak 2012년 1월 23일
답변: Meysam Mahooti 2019년 11월 29일
Hi,
I am facing problem regarding the solution of the foll problem:
W(m+1)(j,k)=Pm(j,k)+Q(j,k)/2*g(j,k) Where: P(j,k)=[W(j+1,k)+W(j-1,k)+W(j,k+1)+W(j,k-1)]/g(j,k) Q(j,k)=Sy(j,k+1)- Sy(j,k-1)+ Sx(j+1,k)-Sy(j-1,k) m=m-th iterations(say 4) g(j,k)={2, if j=1:N or k=1:N 3, if j=1:N or k=2:N-1, k=1:N or j=2:N-1 4 otherwise} N=128
Sx=sqrt(8).*(9.*X.^3+3.*Y.^2-2)
Sy=sqrt(8).*(6.*X.*Y)
And [X,Y] =meshgrid(-1:2/127:+1,-1:2/127:+1)
Which will give us the Q-matrix
The initial W-matrix is assumed to be a zero matrix having all the elements zero(128x128).
Can anyone help me in solving this problem using 1] Jacobi Method, and 2] Gauss Seidel Method upto a iteration of 4 in MATLAB.
  댓글 수: 1
Walter Roberson
Walter Roberson 2012년 1월 23일
http://www.mathworks.com/matlabcentral/answers/13205-tutorial-how-to-format-your-question-with-markup

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

답변 (1개)

Meysam Mahooti
Meysam Mahooti 2019년 11월 29일

카테고리

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

태그

Community Treasure Hunt

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

Start Hunting!

Translated by