Why does this error happen? [Warning: Rank deficient, rank = 2, tol = 1.850312e-14.]

53 views (last 30 days)
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

Answers (1)

Ameer Hamza
Ameer Hamza on 28 Sep 2020
Edited: Ameer Hamza on 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.

Categories

Find more on Creating and Concatenating Matrices in Help Center and File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!