This is another simple code that I still don't understand why it works like that. the variables are y1, y2 and y3. Why are they written as y(1), y(2), y(3) ?? y1 is different from y(1). Y(1) should be the first element of a vector Y... no??
function dy = f(t,y) dy = zeros(3,1); dy(1) = y(2)*y(3); dy(2) = -y(1)*y(3); dy(3) = -0.51*y(1)*y(2);