basice code and example of MatLab about signal processing

源代码在线查看: ideal_differentiator_impulse_response.m

软件大小: 16 K
上传用户: lidaniel
关键词: processing example basice MatLab
下载地址: 免注册下载 普通下载 VIP

相关代码

				% ddiff.m - ideal lowpass differentiator FIR filter				%				% h = ddiff(wc, N) = row vector				%				% N = 2M+1 = filter length (odd)				% wc in rads/sample								function h = ddiff(wc, N)								M = (N-1)/2;								for k = -M:M,				  if k == 0,				    h(k+M+1) = 0;				  else				    h(k+M+1) = wc * cos(wc * k) / (pi * k) - sin(wc * k) / (pi * k^2);				  end				end							

相关资源