Solving ODEs with MATLAB: Specifying Time & y Values

  • Context: MATLAB 
  • Thread starter Thread starter NoobixCube
  • Start date Start date
  • Tags Tags
    Matlab Odes Time
Click For Summary
SUMMARY

This discussion focuses on solving ordinary differential equations (ODEs) using MATLAB. The key takeaway is that in MATLAB's ODE solvers, the independent variable must be time (t), and the equation is structured as dy/dt = f(t), where f is a function solely dependent on time. To obtain a unique solution for the ODE, it is essential to specify the initial condition y(0). This clarification helps users understand the constraints of ODEs versus partial differential equations (PDEs).

PREREQUISITES
  • Understanding of ordinary differential equations (ODEs)
  • Familiarity with MATLAB ODE solvers
  • Knowledge of initial value problems
  • Basic understanding of functions and their dependencies
NEXT STEPS
  • Explore MATLAB's built-in ODE solvers such as ode45 and ode23
  • Learn about specifying initial conditions in MATLAB for ODEs
  • Investigate the differences between ODEs and partial differential equations (PDEs)
  • Study the concept of stability in numerical solutions of ODEs
USEFUL FOR

Mathematics students, engineers, and researchers who are working with differential equations and utilizing MATLAB for numerical solutions.

NoobixCube
Messages
154
Reaction score
0
Anyone have much knowledge on the ODE solvers in matlab? I have an ODE and I want to specificy whether the input is time or the y value for the dy/dt problem.
 
Physics news on Phys.org
Could you please be more specific.
You can only have one variable in an ODE and in this case that variable is t, i.e. the equation is

dy/dt=f(t)

where f is some function of t (and ONLY of t, otherwise it is a PDE).
In order to have a single solution to this ODE you then only need the initial value of y at time 0, i.e. y(0).
 
Cool thanks I think that's what I was looking for.
 

Similar threads

  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 5 ·
Replies
5
Views
3K
  • · Replies 9 ·
Replies
9
Views
4K
  • · Replies 9 ·
Replies
9
Views
3K
  • · Replies 12 ·
Replies
12
Views
3K
  • · Replies 22 ·
Replies
22
Views
4K
  • · Replies 5 ·
Replies
5
Views
4K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 6 ·
Replies
6
Views
3K
  • · Replies 8 ·
Replies
8
Views
3K