时间不变性混乱?

信息处理 线性系统
2022-01-30 14:50:22

我正在尝试学习移位不变性(时间不变性),我遇到了一个函数/系统

y(t)=3x(t)+2cos(πt/3)

我很困惑。如果它是单独的 3x,它肯定是时间不变的(我通过 MATLAB 验证了它)

但是现在它包含两个项,cos项加上3x项,使函数变得复杂

这是我试图为这个系统制作的 MATLAB 代码:

clc
clear all
close all
t=-5:.001:10;
x=heaviside(t)-heaviside(t-5);
y=3*x+2*cos(pi*t/3) 
plot(t,y)

legend('y(t)') 

figure
plot(t+3,y)

legend('y(t-3)')

figure
t=-5:.001:10;
x_shifted=heaviside(t-3)-heaviside(t-8);
y2=3*x_shifted+2*cos(pi*t/3);
plot(t,y2)

legend('S[x(t-3)]')

它的输出表明我的系统/功能不是时间不变的(如果我错了,请纠正我)

1个回答

由于术语,给定系统不是时间不变的cos(πt/3).

给定表单的系统定义:

y(t)=3x(t)+cos(πt/3)
很容易看出

y(td)=3x(td)+cos(π(td)/3)T{x(td)}=3x(td)+cos(πt/3)

因此系统是时变的......