我正在尝试学习移位不变性(时间不变性),我遇到了一个函数/系统
我很困惑。如果它是单独的 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)]')
它的输出表明我的系统/功能不是时间不变的(如果我错了,请纠正我)