数字信号处理的程序集合之二

源代码在线查看: ex051800.m

软件大小: 8 K
上传用户: wuliaowenti
关键词: 数字信号处理 程序
下载地址: 免注册下载 普通下载 VIP

相关代码

				% Chapter 05: Example-5.18: Overlap and save
%
n = 0:9;
x = n+1; Lenx = length(x);
h = [1,0,-1]; M = 3; M1 = M-1; L = N-M1;
N = 6; h = [h zeros(1,N-M)];
%
x = [zeros(1,M1), x, zeros(1,N-1)];
K = floor((Lenx+M1-1)/(L));
Y = zeros(K+1,N);
for k=0:K
	xk = x(k*L+1:k*L+N);
	Y(k+1,:) = circonvt(xk,h,N);
end
Y = Y(:,M:N)';
y = (Y(:))';
			

相关资源