could anyone please help me solve the matrices with respect to the equation as follows:
2 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
jaah navi
am 30 Jul. 2019
Kommentiert: Alex Mcaulley
am 30 Jul. 2019
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](https://www.mathworks.com/matlabcentral/answers/uploaded_files/231818/equation.jpeg)
Could anyone please help me on this.
1 Kommentar
Akzeptierte Antwort
Alex Mcaulley
am 30 Jul. 2019
For i == 3:
X3 = V(3)*U(2)-U(2)*sum(V(1:2))
11 Kommentare
Alex Mcaulley
am 30 Jul. 2019
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
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Operating on Diagonal Matrices finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!