Greetings!
I recently tried to run my code using ode45:
Define function in ODE called "sysbio1.m":
function dzdt = sysbio1(t,z,k)
dzdt=k*z;
end
Parameters in command window:
k = 0.7;
x0 = 1;
tspan = [0,5];
[t,x] = ode45(@sysbio1,tspan,x0,[],k);
plot(t,'XData',k)
I am trying to make a plot that simulates numerical integration. I think I am on to something, but I am sure it is trivial to some of you. Any assistance would be greatly appreciated.
V/R jb