傅里叶变换和非周期信号的频谱
第10章傅里叶变换和非周期信号的频谱
10.1利用fourier 函数求下列信号的傅里叶变换F (j ω), 并利用ezplot 函数绘出其幅度频谱|F(j ω)|和相位频谱φ(ω)。观察比较三个信号的幅频特性和相频特性,并利用傅里叶变换的性质加以解释。
(1)sin(2πt ) (2)sin[2π(t -2)] f 1(t ) =2πt
(3)f sin(2πt )
3(t ) =[2
2πt ]
(1)syms t im re phase;
f = sin(2*pi*t)/(2*pi*t);
Fw = fourier(f)
subplot(311);
ezplot(f);
axis([-2.5 2.5 -pi pi]);
xlabel('时域波形');
subplot(312);
ezplot(abs(Fw));
axis([-2.5 2.5 -pi pi]);
xlabel('幅度谱');
im = imag(Fw);
re = real(Fw);
phase = atan(im/re)
subplot(313);
ezplot(phase);
axis([-2.5 2.5 -pi pi]);
xlabel('相位谱');
(2)
syms t im re phase;
f =
sin((2*pi*(t-2))/(2*pi*(t
-2));
Fw = fourier(f)
subplot(311);
ezplot(f);
axis([-2.5 2.5 -pi pi]);
xlabel('时域波形');
subplot(312);
ezplot(abs(Fw));
axis([-2.5 2.5 -pi pi]);
xlabel('幅度谱');
im = imag(Fw); f 2(t ) =2π(t -2)
re = real(Fw);
phase = atan(im/re) subplot(313);
ezplot(phase);
axis([-2.5 2.5 -pi pi]); xlabel('相位谱');
(3)
syms t im re phase; f =
[sin(2*pi*t)/(2*pi*t)]^2; Fw = fourier(f) subplot(311);
ezplot(f);
axis([-2.5 2.5 -pi pi]); xlabel('时域波形'); subplot(312);
ezplot(abs(Fw));
axis([-2.5 2.5 -pi pi]); xlabel('幅度谱'); im = imag(Fw);
re = real(Fw);
phase = atan(im/re) subplot(313);
ezplot(phase);
axis([-2.5 2.5 -pi pi]); xlabel('相位谱');