Hello, I'm trying to plot several differential equations onto a single graph but I have no idea how. Here are my functions.
function dxdt=f(t,x) dxdt=[0.018*x(2)-0.0035*x(1);-0.018*x(2) ];
function dxdt=f(t,x) dxdt=[.0368*x(2)-.0222*x(1);-.0368*x(2)];
function dxdt=f(t,x) dxdt=[.0922*x(2)-.011*x(1);-.0922*x(2)];
function dxdt=f(t,x) dxdt=[.181*x(2)-.519*x(1);-.181*x(2)];
To graph the above data I simply entered the following into the command window first ode45('be468hw2b', [0 100], [0 100])
I finally gave up trying to plot them together and wound up simply running each function separately giving me four separate graphs.
Any help or advice would be greatly appreciated.
[link] [3 comments]