You are on page 1of 1

hasri4

%example 6-7
%x(1)=ch;
%x(2)=cm;
%x(3)=cx;
%xdot(1)=d(ch)/dt;
%xdot(2)=d(cm)/dt;
%xdot(3)=d(cx)/dt;
function xdot= LEP_6_7(w,x)
k1=55.2;
r1=-k1*x(2)*(x(1)^0.5);
k2=30.2;
r2=-k2*x(3)*(x(1)^0.5);
xdot(1,:)=r1+r2;
xdot(2,:)=r1;
xdot(3,:)=-r1+r2;
end

Page 1

You might also like