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

📄 ex8_12.m

📁 Programs for the book Advanced Engineering Mathematics using MATLAB, 2ndEd.
💻 M
字号:
% EX8_12.M Plot the Fourier transform (w>0) of a pulse for various 
%  widths.  Pulse width is tau = 16 and 4 seconds.
f=[0:.005:.75];         % Frequency
f=f + eps;              % Avoid a divide by zero
F1=zeros(size(f));
F2=zeros(size(f));
F3=zeros(size(f));
%
tau=16                  % Pulse width in seconds
F1=(1/pi)*(sin(pi*f*tau))./f;
tau=tau/4;              % Pulse width = 4 seconds
F2=(1/pi)*(sin(pi*f*tau))./f;
% 
clf                     % Clear any figures
plot(f,F1,'-',f,F2,'--')
title('One-sided spectrum of a pulse - Figure 8.10')
xlabel('Frequency in Hertz')
ylabel('F(w)')
grid
legend('Tau=16','Tau=4')
%
% Modify the script to allow an arbitrary pulse width to be input.
%  Scale the pulses to have the same dc value and compare the
%  spectra. 

⌨️ 快捷键说明

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