Alex
Posts:
6
Registered:
6/19/13


solving via rungekutta fourth order equation
Posted:
Jun 19, 2013 9:53 AM


Hi there,
I am quite new to matlab and have one question regarding solving odf using Rungekutta fourth order.
I solved it in excel, however looking forward to implement it into matlab for better performance.
so i have to solve this equation :
d(ln(Q))/dt=g(Q)*(P/Q1) ;
by solving via rungekutta it should looks like this:
ln(Q) in step n+1= ln(Q) at step n + 1/6*h*(s1+2s2+ss3+s4) ;
where Q, and P are know values let say:
dataQ=data(:,1); dataP=data(:,2);
and ln(g(Q))= c1+c2*ln(Q)+c3*ln(q)^2; with c1,c2,c3 being known parameteres values.
thanks a lot!!!
al.

