In a previous post, a system of three ODE is set as
f = @(t,x) [-x(1)*x(2);x(1)*x(2)-x(2);x(2)]
But I want to define each equation in a separate line and then put all of the three together. Please advise.
MATLAB
f = @(t,x) [-x(1)*x(2);x(1)*x(2)-x(2);x(2)]
Best Answer