Sum of different Matrix elements

조회 수: 16 (최근 30일)
Sean Murphy
Sean Murphy 2013년 2월 12일
답변: Matt J 2017년 10월 12일
I've tried to look around to see if there were answers to my question, but I'm not sure how to word it. Hopefully you guys understand what I mean.
I'm trying to make a Gauss-Seidel iterative algorithm. My problem is when trying to find x sub i to the (k+1):
I'm not sure how to to take individual elements of a vector and compute them in a for loop given we have matrices "a" and "b".
  댓글 수: 3
ChristianW
ChristianW 2013년 2월 13일
Link not working and bad explained. What does this mean: trying to find x sub i to the (k+1)?
Here is the sum of Matrix element 1 and 2.
M = [1 3; 2 4];
M(1)+M(2)
Sean Murphy
Sean Murphy 2013년 2월 13일
Hopefully the equation will give some insight. Im just unsure how to take any of the summations with matrix indexing. I've tried my best to explain it.
Thanks.

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

답변 (1개)

Matt J
Matt J 2017년 10월 12일
I'm not sure how to to take individual elements of a vector
For example,
a(i,1:n-1)

카테고리

Help CenterFile Exchange에서 Creating and Concatenating Matrices에 대해 자세히 알아보기

제품

Community Treasure Hunt

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

Start Hunting!

Translated by