Source: http://www.math.drexel.edu/~tolya/eigenvaluesmatlab.pdf