this is my fynction.it says Error using my_ode (line 18) Not enough input arguments. can you help?
function df=diff2(t,f)Tc=60+5*(60-25)nw=20k0=5e10x=15000c=-9020pa=14.384pw=55.382pb=13.668cpa=125cpw=75cpb=250a=-55570b=-349700df(1)=-f(6)*f(1);df(2)=0;df(3)=-df(1);df(4)=(x*(Tc-f(4))-df(1)*a-df(3)*b-(df(1)*cpa+df(3)*cpb+df(2)*cpw)*f(4))/(na*cpa+nb*cpb+nw*cpw);f(5)=(na/pa)+(nb/pb)+(nw/pw);f(6)=k0*exp(c/f(4));end function my_ode()[T,F]=ode45(@diff2,[0 100],[10 20 0 333 1.056 8.6e-2])plot(T,F(:,1),'-',T,F(:,2),'-',T,F(:,3),'-',T,F(:,4),'-',T,F(:,5),'-',T,F(:,6),'-')end
Best Answer