⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 ydelay.m

📁 一个时滞系统的工具箱
💻 M
字号:
function res=ydelay(s,t,tt,xt,initfun,num);
%YDELAY	calculates the lumped delay terms y(-tau(t)),
%	included in the right-hand side of a system of functional
%	differential equations to be solved numerically.
%	For calculations YDELAY uses initial function as well arrays
%	tt, xt used for construction of degenerate cubic splines.
%	YDELAY is used in special functions where user describes
%	the system in order to solve it by the program dde45.
%	For details see descriptions.

s = t+s;
if nargin==6 
  if s<=tt(1) 
    res=eval(initfun); res=res(num);
  else 
    res=Spline3(tt,xt(:,num),s)';
  end;
else
  if s<=tt(1) 
    res=eval(initfun);
  else 
    res=Spline3(tt,xt,s)';
  end;
end
  

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -