📄 del.m
字号:
function yd=del(y,n)
% DEL Matrix of delayed variables
%
% yd=del(y,n)
%
% y: time series (*)
% n: maximum delay (1)
%
% yd: nxm matrix of delayed variables for i=1:n
% Copyright (c) 2006 by CRES, Lancaster University, United Kingdom
% Authors : Peter Young, Wlodek Tych, Diego Pedregal, James Taylor
% The time series vector y (column) is specified by the user, while
% the optional parameter n (default unity) is the maximum lag
% required. The output yd is a matrix with n columns, where the
% first column is y lagged by one sample, the second column is y
% lagged by two samples and so on.
if nargin==0
disp(' ')
disp(' DEL Matrix of delayed variables')
disp(' ')
disp(' yd=del(y,n)')
disp(' ')
return
end
if nargin<1, y=[]; end
if nargin<2, n=[]; end
yd=del0(y,n);
% end of m-file
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -