1 2 3 4 5 6
clear clc A=[2 3 -1 -1;1 -1 -2 -4;3 1 3 -2;6 3 0 -7] [R P]=spec(A) disp("rank of A") rank(A)