how do i plot a delay differential equation

3 ビュー (過去 30 日間)
michael tsai
michael tsai 2015 年 6 月 13 日
回答済み: Eric Lin 2015 年 6 月 15 日
I've never use matlab to plot a dde before.I did go over the mathworks examples but have no idea how to plot one My dde is dy/dt=(1-y(t))*(y(t-p)-y(t-p-i) y(t)=0.0073;p=3;i=11

回答 (1 件)

Eric Lin
Eric Lin 2015 年 6 月 15 日
The output of MATLAB's dde solvers is a structure that includes as fields the selected mesh and approximations to y(x) at the selected mesh points. You can simply pass these fields as inputs to "plot":
sol = dde23(@ddex1de,lags,@ddex1hist,[0,5]);
plot(sol.x,sol.y);
where the above lines are a snippet taken from the doc page DDE with Constant Delays
You can also use the deval function to evaluate the dde at points of your choosing and then plot those instead.

カテゴリ

Help Center および File ExchangeDelay Differential Equations についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by