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

📄 p2_5.m

📁 Digital Signal Processing-A Computer-Based Approach(Second Edition)Sanjit K.Mitra实验指导书练习题matlab程序
💻 M
字号:
% Program P2_5.m
% Modulation Property of DTFT
close all;clear all;
w = -pi:2*pi/255:pi;
x1 = [1 3 5 7 9 11 13 15 17];x2 = [1 -1 1 -1 1 -1 1 -1 1];
y = x1.*x2;
h1 = freqz(x1, 1, w);h2 = freqz(x2, 1, w);
h3 = freqz(y,1,w);
subplot(3,1,1);plot(w/pi,abs(h1));grid
title('Magnitude Spectrum of First Sequence')
subplot(3,1,2);plot(w/pi,abs(h2));grid
title('Magnitude Spectrum of Second Sequence')
subplot(3,1,3);plot(w/pi,abs(h3));grid
title('Magnitude Spectrum of Product Sequence')

⌨️ 快捷键说明

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