error in ddensd solver

3 次查看(过去 30 天)
RUPAL AGGRAWAL
RUPAL AGGRAWAL 2024-2-11
评论: Vinayak 2024-2-29
I have developed the code but it is showing some error. Kindly help.
clear all;
clc;
tf = 5;
t = linspace(0,tf,10);
hist = 1;
sol = ddesdNdd(@ddefunc, @dylp, @delays, hist, t)
Unrecognized function or variable 'ddesdNdd'.
tint = [0.0312 0.0938 0.1562 0.2188 0.2812 0.3438 0.4062 0.4688 0.5312 0.5938 0.6562 0.7188 0.7812 0.8438 0.9062 0.9688];
yint = deval(sol, tint)
%Sepayat filefor ddefunc
function yp = ddefunc(t, y, yL)
yp = y - (y*(yL)) + dyp;
end
%Separate file foe delays
function d = delays(t, x)
d = sin(t);
end
%Separate file for NDDE
function dyp = delyp(t,y)
dyp = t - sin(t);
end
Error: Failure at t=0 with derivative delay DELYP equal to T. DELYP can be equal to T only for
initial-value NDDEs at T=T0. In all other cases, DELYP must be less than T.
How to rectify this error?
  1 个评论
Vinayak
Vinayak 2024-2-29
Hi Rupal
The function “ddesdNdd” does not look like a standard function. Can you please share what the function does.

请先登录,再进行评论。

回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Partial Differential Equation Toolbox 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by