Specifying input as time or y value for MATLAB ODE solvers

  • Context: MATLAB 
  • Thread starter Thread starter NoobixCube
  • Start date Start date
  • Tags Tags
    Matlab Odes Time
Join the discussion
Registration is free. Ask a follow-up in this thread, or start your own.
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.