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

📄 fig6_40.m

📁 基于WEB与MATLAB编写的信号处理的源码,书名为"应用WEB和MATLAB的信号与系统基础.
💻 M
字号:
% Figure 6.40
% gets Fourier transform for PAM signals (shows best with M=4)
% First, run PAM1 and set s1 = s, and T1 = T; 
%   then run PAM2 and set s2 = s and T2 = T.  Now run this.
[S1,w1]=contfft(s1,T1);
 clf
 subplot(221)
 plot(w1,abs(S1));
 title('(a): Square Pulses')
 axis([0 20 0 2.5])
 ylabel('|S|')
 xlabel('Frequency (rad/sec)')
 subplot(222)
 [S2,w2]=contfft(s2,T2);
 plot(w2,abs(S2))
 axis([0 20 0 2.5])
 title('(b): Sinc Pulses')
 ylabel('|S|')
 xlabel('Frequency (rad/sec)')
 

⌨️ 快捷键说明

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