In MATLAB, you can use the function em
to calculate the exponential of a matrix.
Here is the syntax for using the em
function:
main.m91 chars3 lines
The em
function calculates the exponential of each entry in the matrix and returns a matrix with the same dimensions.
Note that the em
function requires the MATLAB Symbolic Math Toolbox to be installed.
Hope this helps!
gistlibby LogSnag