butterworth+chebcv的matlab 程序

源代码在线查看: g_bilinear.m

软件大小: 6 K
上传用户: a22aa11a
关键词: butterworth chebcv matlab 程序
下载地址: 免注册下载 普通下载 VIP

相关代码

				%实现Butterworth模拟滤波器的去归一化并且进行双线性变换子程序u_buttap.m
				function[b,a]=g_bilinear(N,Omegac,fs)
				z = [];
				p =exp(j*((2*(1:2:N-1)-1+N)/(2*N))*pi)
				p=[p;conj(p)];
				p = p(:);
				if rem(N,2)==1   % n is odd
				    p = [p; -1];
				end
				k = real(prod(-p));
				p=p*Omegac;k=k*Omegac^N;
				%B=real(poly(z));
				%b0=k;
				%b=k*B;
				fs=2*fs;
				ad=(fs+p)./(fs-p);
				zd=(fs+z)./(fs-z);
				kd=(prod(fs-z)./prod(prod(fs-p)));
				
				bd=[zd;-ones(length(p)-length(z),1)];
				a=poly(ad);
				b=poly(bd);
				b=b*kd*k;			

相关资源