expm

Compute the matrix exponential.

Syntax

R = expm(A)

Inputs

A
The input matrix.
Dimension: matrix

Outputs

R
The matrix exponential.

Example

R = expm([0.1,0.2,0.3;0.5,0.6,0.8;0.5,0.4,0.7])
R = [Matrix] 3 x 3
1.31790  0.42080  0.63966
1.13658  2.25993  1.81007
1.00970  0.92618  2.51263

Comments

expm(A) = I + A + A^2/2! + A^3/3! + ...