Hey guys,

Long story short, my DiffEq class has to use MATLAB, but they're not really teaching it to us. I'm trying my best to do some problems given to us, but it's difficult to do this stuff if you don't have much experience.

So here's the problem:

Apparently we're supposed to use 'inline' and 'ode45' to solve this, and then plot it.

So I started with this:

>> f=inline('[-.1*x(1)*x(2);-1*x(1)]','x','t')

f =

Inline function:

f(x,t) = [-.1*x(1)*x(2);-1*x(1)]

...and then I tried this and got a bunch of errors:

[t y]=ode45(f,[0,15],[10,15])

Not quite sure what the problem is here. If anyone could help me out a little bit, I'd greatly appreciate it.