error in ddensd solver

3 Ansichten (letzte 30 Tage)
RUPAL AGGRAWAL
RUPAL AGGRAWAL am 11 Feb. 2024
Kommentiert: Vinayak am 29 Feb. 2024
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 Kommentar
Vinayak
Vinayak am 29 Feb. 2024
Hi Rupal
The function “ddesdNdd” does not look like a standard function. Can you please share what the function does.

Melden Sie sich an, um zu kommentieren.

Antworten (0)

Kategorien

Mehr zu Partial Differential Equation Toolbox finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by