function output=delayseq(x,dt,fs) %delayseq Delay or advance time sequence % Y = delayseq(X, DELAY) returns the delayed or advanced sequence Y by % applying DELAY to the input sequence X. DELAY (in samples) can be % integer or non-integer values. When it is negative, the sequence X is % advanced. X can be a vector or a matrix. DELAY is a scalar or a vector. % % When X is a column vector, X is delayed by each element of DELAY and % the resulting sequence will be stored in corresponding column of Y. % % When X has multiple columns, each column is delayed by corresponding % element of DELAY. If DELAY is a scalar, it will be applied to each % column of X. % % The output sequence Y always has the same length as input with % appropriate truncations or zero padding. % % Y = delayseq(X, DELAY, Fs) specifies DELAY in seconds. Fs is the % sampling frequency (in
MATLAB时域信号的平移
最新推荐文章于 2024-09-30 19:15:22 发布
该函数`delayseq`用于实现MATLAB中时域信号的延迟或提前,支持整数和非整数延迟值。当延迟为负值时,信号会提前。输入可以是向量或矩阵,输出序列长度与输入相同,可能需要截断或填充零。
摘要由CSDN通过智能技术生成