could anyone please help me solve the matrices with respect to the equation as follows:

조회 수: 1 (최근 30일)
I am having the following matrices
U=[15;
14;
13]
V=[2;
3;
4]
i need to solve the matrices with respect to the equation as follows:
where i=3,
equation.jpg
Could anyone please help me on this.

채택된 답변

Alex Mcaulley
Alex Mcaulley 2019년 7월 30일
For i == 3:
X3 = V(3)*U(2)-U(2)*sum(V(1:2))
  댓글 수: 11
jaah navi
jaah navi 2019년 7월 30일
But i want to have the third row value to be -15.
so the command needs to perform in such a way that the third value needs to be (4*15-(2+3)*15)=-15.
Alex Mcaulley
Alex Mcaulley 2019년 7월 30일
It doesn't follow the equation you shared. Anyway, a possible trick:
sol = V;
for a = 2:numel(V)
sol(a) = U(1)*(V(a)-sum(V(1:a-1)));
end

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

추가 답변 (0개)

카테고리

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