Main Content

expm

Matrix exponential of symbolic matrices

Description

R = expm(A) computes the matrix exponential of the square symbolic matrix A.

example

Examples

Matrix Exponential

Compute the matrix exponential for the 2-by-2 matrix and simplify the result.

syms x
A = [0 x; -x 0];
simplify(expm(A))
ans =
[  cos(x), sin(x)]
[ -sin(x), cos(x)]

Input Arguments

collapse all

Input matrix, specified as a square symbolic matrix.

Output Arguments

collapse all

Resulting function, returned as a symbolic matrix.

More About

collapse all

Matrix Exponential

The matrix exponential eA of matrix A is

eA=k=01k!Ak=1+A+A22+

Version History

Introduced before R2006a

See Also

| | | |