Question: what is expm in matlab?
Answer: Y = expm(X) raises the constant to the matrix power X . The expm function produces complex results if X has nonpositive eigenvalues. Use exp for the element-by-element exponential. Algorithm. expm is a built-in function that uses the Padé approximation with scaling and squaring.