Issue With MATLAB Homework Problem
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(x,t) = [-.1*x(1)*x(2);-1*x(1)]
...and then I tried this and got a bunch of errors:
Not quite sure what the problem is here. If anyone could help me out a little bit, I'd greatly appreciate it.