Matrix exponential
computes
the matrix exponential of
the square matrix R
= expm(A
)A
.
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)]