How can i solve a system which contains matrices
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
IOANNIS STAVROU
am 22 Nov. 2019
Beantwortet: darova
am 22 Nov. 2019
5x + 3y + z = c1
x + y + z = c2
3x + y + 2z = c3
Is there any way to solve this system if c1,c2,c3 are 1 x n matrices with known numbers without using a for loop for each value of c1,c2,c3 ?
0 Kommentare
Akzeptierte Antwort
darova
am 22 Nov. 2019
Here is the best way i know:
A = [5 3 1
1 1 1
3 1 2];
B = [c1(:) c2(:) c3(:)]';
C = inv(A) * B;
0 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Dynamic System Models 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!