Matlab calculates matrix eigenvalue program (guarantee can run)