# MATLAB ODE solver

#### NoobixCube

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.

#### f95toli

Gold Member
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).

#### NoobixCube

Cool thanks I think thats what I was looking for.

### The Physics Forums Way

We Value Quality
• Topics based on mainstream science
• Proper English grammar and spelling
We Value Civility
• Positive and compassionate attitudes
• Patience while debating
We Value Productivity
• Disciplined to remain on-topic
• Recognition of own weaknesses
• Solo and co-op problem solving