- 38

- 1

**1. Homework Statement**

The system of ODEs

y

_{1}'= y

_{2}

y

_{2}'= -2y

_{1}-0.03y

_{1}

^{3}

The time span is [0:0.1:5]

and there are no initial conditions!

Need to be solved using ODE45 solver

**2. Homework Equations**

None

**3. The Attempt at a Solution**

I created this m-file

function yprime = syst1(t, y)

yprime = [y(2); -2*y(1)-0.03*(y(1))^3];

then in the command window

tspan=[0:01:5]

[t y]=oder45 ('syst1', tspan)

and then nothing comes out. I have found many examples of solving systems of ODEs but all of them with initial conditions which is not my case. Can someone explain me waht I am doing wrong?

Than You