Solving IVP with ODE45: a=0.00001, b=0.25 & a=0.0002, b=0.10

  • Context: MATLAB 
  • Thread starter Thread starter mooberrymarz
  • Start date Start date
  • Tags Tags
    Ivp Ode45
Click For Summary
SUMMARY

The discussion focuses on solving an initial value problem (IVP) using MATLAB's built-in function ODE45. The specific equations to be solved are x'(t) = -axy, y'(t) = axy - by, and z'(t) = by, with parameters a and b set to two different pairs: (0.00001, 0.25) and (0.0002, 0.10). The user seeks assistance in implementing the ODE45 function correctly, indicating a need for code examples to achieve a numerical solution with a step length of 1.

PREREQUISITES
  • Familiarity with MATLAB programming
  • Understanding of ordinary differential equations (ODEs)
  • Knowledge of initial value problems (IVPs)
  • Experience with numerical methods for solving ODEs
NEXT STEPS
  • Review MATLAB ODE45 documentation for syntax and usage
  • Explore examples of solving IVPs using ODE45 in MATLAB
  • Learn about step size selection and its impact on numerical solutions
  • Investigate the stability and accuracy of numerical methods for ODEs
USEFUL FOR

Students and researchers in mathematics, engineering, or computer science who are working on numerical methods for solving ordinary differential equations, particularly those using MATLAB.

mooberrymarz
Messages
53
Reaction score
0
Hi! I have :eek: hand in an assigment in like four hours and part of it involves solving a IVP. We have to use the built in function ODE45. the system of equations are as follows.

x'(t)=-axy
y'(t)=axy-by
z'(t)=by

Use step length 1 and solve the ivp numerically for the following values of a,b
a=0.00001, b=0.25
a=0.0002, b=0.10

I know its easy but i can't get it to work. Please help me. :redface:
 
Physics news on Phys.org
Can you post your code so far, please?
 

Similar threads

  • · Replies 6 ·
Replies
6
Views
4K
  • · Replies 5 ·
Replies
5
Views
5K
  • · Replies 4 ·
Replies
4
Views
7K
Replies
2
Views
2K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 2 ·
Replies
2
Views
4K
  • · Replies 7 ·
Replies
7
Views
3K
  • · Replies 5 ·
Replies
5
Views
10K
  • · Replies 12 ·
Replies
12
Views
33K
  • · Replies 5 ·
Replies
5
Views
3K