MATLAB Solving ODEs with MATLAB: Specifying Time & y Values

  • Thread starter Thread starter NoobixCube
  • Start date Start date
  • Tags Tags
    Matlab Odes Time
AI Thread Summary
The discussion focuses on the use of ODE solvers in MATLAB, specifically addressing the formulation of ordinary differential equations (ODEs). It clarifies that in an ODE, the variable must be time (t), expressed as dy/dt = f(t), where f is solely a function of time. The conversation emphasizes that to solve this ODE, only the initial value of y at time zero (y(0)) is required for a unique solution. This understanding helps clarify how to set up the problem correctly in MATLAB.
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
Views
1K
Replies
5
Views
2K
Replies
9
Views
3K
Replies
12
Views
3K
Replies
22
Views
4K
Replies
2
Views
2K
Replies
5
Views
3K
Back
Top