I have a matrix of ODE which I want to solve and plot.
x
x = (sym 2×1 matrix)
⎡ -331⋅π⋅t -61⋅π⋅t ⎤
⎢ ───────── ──────── ⎥
⎢ 2299 2 10835 ⎥
⎢ 689986800⋅ℯ 89076600⋅π ⋅ℯ ⎥
⎢ ──────────────────── + ───────────────────── ⎥
⎢ 1307333 12173551 ⎥
⎢ ⎥
⎢ -331⋅π⋅t -61⋅π⋅t ⎥
⎢ ───────── ────────⎥
⎢ 2299 10835 ⎥
⎢ 206492400⋅ℯ 139429800⋅π⋅ℯ ⎥
⎢- ──────────────────── + ─────────────────────⎥
How can I plot both x(1) and x(2) in Octave?
Code for reproduction:
pkg load symbolic;
A = [-0.4, 0.4; 0.05, -0.07];
[M, Lambda] = eig(A);
t = sym('t');
Phi = M * expm(Lambda*t)*inv(M);
x = Phi * [600; 0]