> with(linalg):
1. Define a matrix.
> A:=matrix([[1,2],[3,4]]);
2. Obtain the determinant of the matrix.
> det(A);
3. Find the adjoint of the matrix.
> adj(A);
4. Find the transpose of the matrix.
> transpose(A);
5. Find the inverse of the matrix.
> inverse(A);
> evalf(%);
>
6. Find the minor of an element.
> minor(A,1,2);
7. Define another matrix.
> B:=matrix([[3,0],[4,6]]);
8. Addition of matrices
> C:=matadd(A,B);
9. Matrix multiplication
> E:=multiply(A,B);