필터 지우기
필터 지우기

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 CenterFile Exchange에서 Programming에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by