Why does this error happen? [Warning: Rank deficient, rank = 2, tol = 1.850312e-14.]
Ältere Kommentare anzeigen
Why does this error happen?
A = [1 2 3; 4 5 6; 7 8 9; 10 11 12]
A =
1 2 3
4 5 6
7 8 9
10 11 12
A/A
[Warning: Rank deficient, rank = 2, tol = 1.696862e-14.]
ans =
1.0000 0 0 0
0.6667 0 0 0.3333
0.3333 0 0 0.6667
0.0000 0 0 1.0000
Antworten (1)
Ameer Hamza
am 28 Sep. 2020
Bearbeitet: Ameer Hamza
am 28 Sep. 2020
The matrix A is not invertible. If you calculate the reduced row echelon of this matrix, you will see that it only have two linearly independent rows
>> A = [1 2 3; 4 5 6; 7 8 9; 10 11 12];
>> rref(A)
ans =
1 0 -1
0 1 2
0 0 0
0 0 0
MATLAB error indicates that because of this issue, the result of inversion will be incorrect.
Kategorien
Mehr zu Numerical Integration and Differential Equations finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!