Solving ODEs with MATLAB: Specifying Time & y Values

  • Context: MATLAB 
  • Thread starter Thread starter NoobixCube
  • Start date Start date
  • Tags Tags
    Matlab Odes Time
Join the discussion
Ask a follow-up here, or get your own question answered by working scientists, mathematicians and engineers — people, not an autocomplete.
Real named experts · corrections over time · the nuance an AI answer skips
2 replies · 9K views
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.