Creating an ODE Function in Matlab

The function I want to try to model is
dx/dt = y(t)
dy/dt = x(t-6), where x(t-6) refers to the value of x for t-6, not x*(t-6).
How would I go about writing the second part in a function?

Asked:

on 26 Feb 2015

Answered:

on 26 Feb 2015

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!