You need to write as a function or a function handle
dydt = @(t, y) [y(2); y(3); -24*y(1)-26*y(2)-9*y(3)];
y0 = [1 -4 -14];
tspan = [0 10];
[t, y] = ode45(dydt, tspan, y0);
plot(t, y);
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!