MATLAB: Coupled differential equations kinetic

coupledMATLABode

Hello Im am trying to solve 3 coupled ODE's, with the plot related to the reduction of NO by with ammoniasulphate.
The issiue is that the differential equation i wrote do not seems to be coupled. First the initial condition for NH3 is zero, but that makes the rate of change 0. If i change the NH3 to a very small value then the system still not respond well (deacreasing NO over time) as chaning the stouchemtic coiffcient x1 does not change the NO concentration…… see attched. Thanks.

Best Answer

yprime and y are always connected
function [ yprime ] = calibration( t,y,par,par_cali,T,x1,O2)
Your input y were in wrong order. Try this
AS=y(1);
NH3=y(2);
NO=y(3);
Result
img1.png
Related Question