Digital Signal Processing Using MATLAB V.4随书代码

源代码在线查看: cirshftt.m

软件大小: 92 K
上传用户: zyhunicom
关键词: Processing Digital Signal MATLAB
下载地址: 免注册下载 普通下载 VIP

相关代码

				function y = cirshftt(x,m,N)								% Circular shift of m samples wrt size N in sequence x: (time domain)								% -------------------------------------------------------------------								% [y] = cirshftt(x,m,N)								% y = output sequence containing the circular shift								% x = input sequence of length 								% m = sample shift								% N = size of circular buffer								%  Method: y(n) = x((n-m) mod N)																% Check for length of x								if length(x) > N								        error('N must be >= the length of x')								end								x = [x zeros(1,N-length(x))];								n = [0:1:N-1];								n = mod(n-m,N);								y = x(n+1);			

相关资源