フィルターのクリア

error in ddensd solver

2 ビュー (過去 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 Center および File ExchangeProgramming についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by