How do you plot the direction (vector) field of a second-order homogeneous ode using Matlab?
I've already used MATLAB to check the solution to the ode and I've tried to use tutorials online to plot the direction (vector) field, but haven't had any luck. Here's what I have done in MATLAB:
eqn1 = 'D2x + 5*Dx + 4*x = 0'; x = dsolve(eqn1, 't')
The above gives me the correct solution to the second-order ode, but isn't helpful for plotting the direction (vector) field. I'm new to MATLAB, so any help would be greatly appreciated.