I have the following matlab code that produces the phase plane for the state variables and I want to add arrows in order to show that my system goes from the initial conditions point to the stability point which is (0,0). How is that possible ?
tspan = 0.0:0.1:10;[t,w] = ode45(@ode, tspan, [-0.5;-0.5]);plot(w(:,1),w(:,2))function dx = ode(t,x) dx = [x(2) ; - x(2) - 4*x(1)];end
Best Answer