Question

2) Chemical-kinetics problems often lead to sets of coupled,firsorder ODEs. For example, consider the reaction network Assumi

I need to solve this using matlab.

0 0
Add a comment Improve this question Transcribed image text
Answer #1

plz rate:

Script 1:

function dx=ala_func(t,x,Para)
a=Para(1);
b=Para(2);
c=Para(3);
dx=[-a*x(1)+b*x(2);a*x(1)-b*x(2)-c*x(2);c*x(2)];
end

Script2:

Para=[5 2 1]';
x0=[1 0 0]';
dt=0.01;
tspan=0:dt:30;
[t,x]=ode45(@(t,x) ala_func(t,x,Para),tspan,x0);
f=x(:,2);
h=x(:,1);
y=x(:,3);
plot(t,h)

hold on
plot(t,f)

hold on
plot(t,y)
legend(' Conc of A vs t',' Conc of B vs t',' Conc of C vs t')

1.2 Conc of A vs Conc ofB vs t Conc of C vs t 0.8 0.6 0.4 0.2 아 0.2 10 15 20 25 30

Add a comment
Know the answer?
Add Answer to:
I need to solve this using matlab. 2) Chemical-kinetics problems often lead to sets of coupled,firsorder ODEs. For exam...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • Help to solve part 1 and refer to part 2 if needed using matlab. 1. 2....

    Help to solve part 1 and refer to part 2 if needed using matlab. 1. 2. Plot the solution showing each component vs. time, and also plot the trajectory in the 3-dimensional space (x,y,z) represented as a parametric curve with parameter t. The Lorentz attractor is given by the following set of coupled equations dx = o(y-x), dt dy = x(p- z), dt dz = xy - Bz, dt Write an anoymous function where x=(x, y, z), sigma=o, rho=p and...

  • I need Summary of this Paper i dont need long summary i need What methodology they used , what is the purpose of this p...

    I need Summary of this Paper i dont need long summary i need What methodology they used , what is the purpose of this paper and some conclusions and contributes of this paper. I need this for my Finishing Project so i need this ASAP please ( IN 1-2-3 HOURS PLEASE !!!) Budgetary Policy and Economic Growth Errol D'Souza The share of capital expenditures in government expenditures has been slipping and the tax reforms have not yet improved the income...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT