Write down a Matlab program to find out the dominant eigenvalue of a matrix using the inverse power method.
The script file should accept a square matrix.
It should return a scalar representing the dominant eigenvalue.
The program should also return the eigenvector that is produced by that eigenvalue.