📄 ex8_12.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]; % Frequencyf=f + eps; % Avoid a divide by zeroF1=zeros(size(f));F2=zeros(size(f));F3=zeros(size(f));%tau=16 % Pulse width in secondsF1=(1/pi)*(sin(pi*f*tau))./f;tau=tau/4; % Pulse width = 4 secondsF2=(1/pi)*(sin(pi*f*tau))./f;% clf % Clear any figuresplot(f,F1,'-',f,F2,'--')title('One-sided spectrum of a pulse - Figure 8.10')xlabel('Frequency in Hertz')ylabel('F(w)')gridlegend('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 + -