Code covered by the BSD License  

Highlights from
The matrix exponential

from The matrix exponential by Thomas Schmelzer
Computes exp(A)*b where A is real and symmetric

cf_matrixexponential( A,b )
function [ v ] = cf_matrixexponential( A,b )  
% cf_matrixexponential
% computes v = exp(A)*b where A is a real, symmetric and negative semidefinite
% The vector b is real
% This function is much faster than expm(A)*b as it avoids the explicit
% computation of exp(A).
% Thomas Schmelzer, December 2008
    v = cf_matrixfunction(@exp,A,b,14);
end

Contact us at files@mathworks.com