Matlab has many built in matrix functions and operators. I have listed some here that you may find useful:
>> size(A) gives the dimension of the matrix A
>> inv(A) calculates the inverse of the matrix A , if it exists.
>> det(A) calculates the determinant of the matrix A
>> rref(A) calculates the row reduced echelon form of the matrix A
>> rrefmovie(A) shows the individual pivot operations of rref(A)
>> A' forms the transpose of the matrix A.
>> eye (2,2) this is the 2 by 2 identity
>> zeros (3,3) builds the zero matrix of any dimension
>> ones (3,2) fills a matrix of any size with ones.
augmented matrix you can create an augmented matrix from two others that you have
already defined as follows:
>> S = [ A C] uses the matrix A and C defined previously and creates the matrix S 
>> rats(A) displays elements of the matrix A as fractions. Be aware that this command changes the dimension of your matrix. Best used after all calculations have been completed.
>> format long displays all numbers with 15 digits instead of the usual 4 digits
>> eig(A) gives the eigenvalues of the matrix A
>> poly(A) gives the coefficients of the characteristic polynomial A. The roots of this polynomial are the eigenvalues of A.