|
On Jan 30, 4:08 am, "Apon Mohaimen" <mohaimen.man...@gmail.com> wrote:
> "Nasser M. Abbasi" <n...@12000.org> wrote in message <jg3bki$uu...@speranza.aioe.org>...> On 1/29/2012 5:14 AM, Apon Mohaimen wrote:
> > > Dear all,
> > > I was just wondering if anyone knows how to solve a system of ODE's of the following form:
> > > dx/dt=f(x)
> > > dy/dt=g(x)
> > > x0=0,y0=0
> > > note that both x' and y' prime are only functions of x only.
> > > Do i need to include '0*h(y)' in one of the equations so that Matlab understands that
> > >it needs to solve for both x and y?
>
> > dy/dt=g(x)? I do not underatand this one. is y here a function
> > of t and x?
>
> > --Nasser
>
> Thanks for your reply. Actually both x and y are indeed functions of t. dy/dt is a function of x and t. Does it make sense if I write it this way?
> dx(t)/dt=f(x(t),t)
> dy(t)/dt=g(x(t),t)
> x(0)=0,y(0)=0
So, dy/dt must be a partial derivative, not ordinary derivative, and
that's a whole different ballgame.
|