Prev: Error when changing Matlab version from 2008a to 2008b
Next: Urgent! Help in 'nprtool' and 'svm'
From: Phuah on 21 Jul 2010 11:16 Hi, I do have one problem with kinetic modeling. Let's say a reaction occurs in such a way A <------> B (reversible way) where k1 is a constant for A change to B and k2 is a constant for B change to A so I used ODE solver to solve the problem mentioned and successfully get a graph. However, I do not know how to fit my experimental data into the graph and get the reaction constant k1 and k2 using matlab. Anyone can help? How to use matlab nonlinear regression by least square in this case? Thanks in advance. function dxdt=matlab(t,x) global k1 k2 k1=0.1; k2=0.01; dxdt=[-k1*x(1)+k2*x(2);k1*x(1)-k2*x(2)]; [t,x]=ode45{@matlab,[0 50],[0.1 1]} plot{t,x} Thanks, Matlab newbie
|
Pages: 1 Prev: Error when changing Matlab version from 2008a to 2008b Next: Urgent! Help in 'nprtool' and 'svm' |