%I would like to calculate CA, CB, CP, CZ
clear
syms CA CB CP CZ tdisp([' ']);disp(['ODE - Chemical Kinetics 1st assignment on matlab']);disp([' ']);eqn1 = 'DCA = -CA';CA = (dsolve(eqn1,'CA(0)=10','t'));%disp(['H sugkentrwsi tou CA sunarthsei tou xronou gia thermokrasia 80oC
einai:']);CAeqn2= 'DCB = CA-CB';CB = (dsolve(eqn2,'CB(0)=0','t'));%disp(['H sugkentrwsi tou CB sunarthsei tou xronou gia thermokrasia 80oC
einai:']);CBeqn3= 'DCP = (CB-CP';CP = (dsolve(eqn3,'CP(0)=0','t'));%disp(['H sugkentrwsi tou CP sunarthsei tou xronou gia thermokrasia 80oC
einai:']);CPeqn4= 'DCZ = CP';CZ = (dsolve(eqn4,'CZ(0)=0','t'));%disp(['H sugkentrwsi tou CZ sunarthsei tou xronou gia thermokrasia 80oC
einai:']);
CZ
Best Answer