MATLAB: How to calculate expm of a badly scaled matrix

badly scaled matrixexpmMATLABnan

I'm using expm for a matrix with big and small coefficients and I get NaN in the result. Is there a method to get the good matrix exponential even if the matrix is badly scaled? Normally there is a exponential for every matrix.
ALEX

Best Answer

In particular, have you tried the alternative versions expmdemo1 and expmdemo3 ?
Related Question