MATLAB: How to find the differential equation ? ode solver

codeodeplot

So I am very new to matlab ; now wish to use ode solver. I am a little stuck with a thing ; If I have an ouput plot as my objective to plot ; and I have the solutions of the differential equations – is there a way to know he differential equation which can be put in the ode solver in order to reach the objective plot ?

Best Answer

If the output plot function is f(t) and f(t0)=f0, then the corresponding ODE reads
dy/dt = f'(t) with y(t0) = f0.
This ODE should reproduce y = f.
Best wishes
Torsten.