D does not have full rank.Īnother characteristic of a square matrix is its determinant. C does not have full rank.ĭ_rank = rank(D) % = 2. Since B has 3 rows and columns and its rank is 3, B has full rank and is non-singular.Ĭ_rank = rank(C) % = 1. The rank of a matrix can be computed with the MATLAB function rank():ī_rank = rank(B) % = 3. When the rank of a square matrix = the number of rows, it has 'full rank' and is non-singular, so it has an inverse. The rank of a matrix is the number of independent rows.
For example these 3x3 matrices do not have inverses:Ī matrix which does not have an inverse is called a 'singular' matrix. The inverse of B, IB, is a matrix such that B*IB = the identity matrix and IB*B = the identity matrix.