Hi, Phugoid!

Thanks a lot for your help!

I really don't have much knowledge about programming, but here's what I want matlab to do for me:

Consider some constant matrix A and a function w(t). Then the function expm^(w(t)*A) is another matrix /matrix exponential defined as usual via taylor series/ which is now t-dependent, i.e. a matrix-valued function of t. If I multiply this new matrix by a constant vector, I get my final vector-valued function f(t), both componnets of which I would like to plot.

e.g. f(t) = expm^(w(t)*A)*[1;2]

much like the plot for solving an ode numerically, where the commands

[t,z] = ode45('num',[0 10],[1;2])

plot(t,z)

compute the numerical solution to the ode given via the manually defined function num(t,z) and then plots both components of the vector-valued z

This type of calculation occurs when solving a system of linear ODE's

What I'm trying to do here is to compare my analytical solution to the numerical, but I'm not able to plot the analytical