⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 c4ex19.m

📁 数字信号处理Matlab实现?中藕糯鞰atlab实现数字信号处理Matlab实现
💻 M
字号:
%	c4ex19%t_max = 2;t = -t_max+1:.01:t_max;L = length(t);for k = 1:4				% Loop to do 4 values of window widthk_even = 2*k;k_odd = 2*k - 1;W = 2 + (k-1);tp = [2*t(1):.01:2*t(L)];w_r = 2*W*sinc(2*W*t);			% Inverse transform of rectangular windoww_h = W*(sinc(2*W*t)+.5*sinc(2*W*t-1)+.5*sinc(2*W*t+1));	% Hanning windowx = pls_fn(t-.5);x_tilde_r = .01*conv(w_r, x);		% Convolve rectangular window with pulsex_tilde_h = .01*conv(w_h, x);		% Convolve Hanning window with pulsesubplot(4,2,k_odd),plot(tp, x_tilde_r),xlabel('t'),ylabel('wind. x(t)'),...	text(-.9,1,'rectan.'),text(-.9,.5, ['W = ',num2str(W)]),axis([-t_max+1 t_max -.2 1.5])subplot(4,2,k_even),plot(tp, x_tilde_h),xlabel('t'),ylabel('wind. x(t)'),...	text(-.9,1,'Hann.'),text(-.9,.5,['W = ',num2str(W)]),axis([-t_max+1 t_max -.2 1.5])end

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -