MATLAB: How do we plot this…

controlfor loopnonlinearode45plot

Do you have an idea how to plot any time delayed state with respect to time in Matlab.
for example,
(d/dt) x(t) = 2 x(t) + x(t-d(t))
where d(t)= cos(t)
i want to plot x(t) with respect to time 't' …

Best Answer

If you have the symbolic toolbox, use dsolve