Azzera filtri
Azzera filtri

How can I solve 16x16 matrix? It is specifically required to solve Ax=b matrix.

6 visualizzazioni (ultimi 30 giorni)
Here I am giving my code
A = [1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
1 1 1 1 1 1 1 1 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 1 1 1 1 1 1 1 1
0 0 0 0 0 0 0 0 1 1 1 1 1 1 1 1
0 1 2 3 4 5 6 7 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 1 2 3 4 5 6 7
0 0 2 6 12 20 30 42 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 2 6 12 20 30 42
0 0 0 6 24 60 120 210 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 6 24 60 120 210
0 0 0 0 24 120 360 840 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 24 120 360 840
0 1 2 3 4 5 6 7 0 -1 -2 -3 -4 -5 -6 -7
0 0 2 6 12 20 30 42 0 0 -2 -6 -12 -20 -30 -42
0 0 0 6 24 60 120 210 0 0 0 -6 -24 -60 -120 -210
0 0 0 0 24 120 360 840 0 0 0 0 -24 -120 -360 -840]
b= [0
1
1
2
0
0
0
0
0
0
0
0
0
0
0
0]
x = [
a10
a11
a12
a13
a14
a15
a16
a17
a20
a21
a22
a23
a24
a25
a26
a27]
So, how can I solve it?

Risposte (1)

Walter Roberson
Walter Roberson il 22 Apr 2016
Your fourth row is the same as the third. The third row is 1 minus the second.
rank(A) is only 11 (out of possible 16). You cannot use the normal technique which would be
x = A\b;
There is no unique solution.
One of the non-unique solutions is
x = pinv(A) * b;

Categorie

Scopri di più su Matrices and Arrays in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by