Azzera filtri
Azzera filtri

error in ddensd solver

2 visualizzazioni (ultimi 30 giorni)
RUPAL AGGRAWAL
RUPAL AGGRAWAL il 11 Feb 2024
Commentato: Vinayak il 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 Commento
Vinayak
Vinayak il 29 Feb 2024
Hi Rupal
The function “ddesdNdd” does not look like a standard function. Can you please share what the function does.

Accedi per commentare.

Risposte (0)

Categorie

Scopri di più su Programming in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by