验证时域移位定理
根据数字信号处理的相关内容可知,若
f
(
t
)
f(t)
f(t)的傅立叶变换
F
[
f
(
t
)
]
=
F
(
j
ω
)
\mathscr F\left[ f(t)\right] = F({\rm j}\omega)
F[f(t)]=F(jω)
那么在时域进行移位
t
0
t_0
t0,相当频域只改变相位,幅度不变,即:
f
(
t
+
t
0
)
↔
F
(
j
ω
)
e
±
j
ω
t
0
f(t+t_0) \leftrightarrow F({\rm j}\omega ){\rm e}^{\pm {\rm j}\omega {t_0}}
f(t+t0)↔F(jω)e±jωt0
可以在MATLAB中进行验证:
clc; close all; clear;
fs = 10;
N = 600;
n = 0: N - 1;
t = n / fs;
figure;
subplot(2,3,1);
xt1 = tripuls(t - 2, 1);
plot(t, xt1);
xlabel('$t/\rm{s}$', 'Interpreter', 'latex');
ylabel('$x_1(t)$', 'Interpreter', 'latex');
subplot(2,3,4);
xt2 = tripuls(t - 10, 1);
plot(t, xt2);
xlabel('$t/\rm{s}$', 'Interpreter', 'latex');
ylabel('$x_2(t)$', 'Interpreter', 'latex');
[f1, Ff1] = T2F(t, xt1);
[f2, Ff2] = T2F(t, xt2);
subplot(2,3,2);
plot(f1, abs(Ff1));
xlabel('$f/\rm{Hz}$', 'Interpreter', 'latex');
ylabel('$\mathcal F_1(f)$', 'Interpreter', 'latex');
subplot(2,3,5);
plot(f2, abs(Ff2));
xlabel('$f/\rm{Hz}$', 'Interpreter', 'latex');
ylabel('$\mathcal F_2(f)$', 'Interpreter', 'latex');
subplot(2,3,3);
plot(f1, angle(Ff1));
xlabel('$f/\rm{Hz}$', 'Interpreter', 'latex');
ylabel('$\varphi_1(f)$', 'Interpreter', 'latex');
subplot(2,3,6);
plot(f2, angle(Ff2));
xlabel('$f/\rm{Hz}$', 'Interpreter', 'latex');
ylabel('$\varphi_2(f)$', 'Interpreter', 'latex');
结果如下: