Help in solving a system of ODEs using MATLAB

jcsolis

Hello, I have been trying to solve this problem and the only thing I got is errors and errors. Also I need to plot y versus t, y' versus t and y' versus y??

1. Homework Statement

The system of ODEs

y1'= y2
y2'= -2y1-0.03y13

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

Related Calculus and Beyond Homework Help News on Phys.org

"Help in solving a system of ODEs using MATLAB"

Physics Forums Values

We Value Quality
• Topics based on mainstream science
• Proper English grammar and spelling
We Value Civility
• Positive and compassionate attitudes
• Patience while debating
We Value Productivity
• Disciplined to remain on-topic
• Recognition of own weaknesses
• Solo and co-op problem solving