フィルターのクリア

How to extract tevent from deval

1 回表示 (過去 30 日間)
sourabh mittal
sourabh mittal 2019 年 6 月 13 日
編集済み: sourabh mittal 2019 年 6 月 13 日
function main
tstart = 0.0;
tend = 100.0;
options = ddeset('Events',@events);
sol = dde23(@ddex1,2,[0.7],[tstart tend],options);
tint = linspace(tstart,tend,1000);
yint = deval(sol,tint);
tevent = ?? %this is what i want to calculate.
end
function dydt = ddex1(t,y,Z)
ylag = Z(:,1);
dydt = y*ylag*(1-y);
end
function [value,isterminal,direction] = events(t,y,Z)
value(1) = y(1)-0.99;
isterminal(1) = 0;
direction(1) = 1;
end
This is my code. but I first want to solve dde then want to evaluate the structure. Then i want to extract tevent from tint.

回答 (0 件)

カテゴリ

Help Center および File ExchangeInstallation and Operational Settings についてさらに検索

製品

Community Treasure Hunt

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

Start Hunting!

Translated by