Calculate A to N power matrix using matrix diagonalization.

This is matlab function to calculate sum of A to N power using matrix diagonalization, it assumes that matrix is a square matrix. function [x] = powersum(A, m) % Greg Bugaj % Y = powersum(A, n) gives an sum of matrices to N power, if matrix size % is less than 2 then we simply … Read more