|
On Apr 10, 3:20 pm, "X_man " <hra...@hotmail.com> wrote:
> how can I resolve a second degree differential function with matlab?
>
> t=0:0.1:10
> diff(x,2)=5+diff(x)-7*x
>
> x is derive by t
>
> thank you very much
1. If t = 0:dt:tmax, then derivative approximations would be
diff(x)/dt and diff(x,2)/(dt^2)
2. Given initial conditions x(1) and x(2) (or x(2)-x(1)), the
equation is easily rearrange into a recursion for x(i+2).
3. However, given boundary conditions at both ends
requires help from another poster or a search in the
ODE documentation.
4. Finally, you can probably use the Symbolic Toolbox.
Not much help, but it's a start.
Greg
|