信号 ,若用频率fs=150Hz对其采样,试绘出原信号.采样后的信号及其频谱,并讨论频谱的变化过程.
来源:百度知道 编辑:UC知道 时间:2024/06/02 17:11:13
基于MATLAB
syms t
y=sin(2*pi*50*t);
fy=abs(fourier(y));
dt=0:1/150:pi;
yy=subs(y,dt);
ffy=abs(fft(yy,472));
f=150*(0:236)/472;
figure
subplot(211)
ezplot(y,[0,pi])
subplot(212)
ezplot(fy,[0:200])
figure
subplot(211)
plot(dt,yy)
subplot(212)
plot(f,ffy(1:237))