回 帖 发 新 帖 刷新版面

主题:等待高手 热心人。谢谢

[em8][em12][em12]
用matlab怎么做这样的题啊  时能给出编程! 谢谢高手了

通带信号想x(t)=2sinc(20t)cos{2π*100t+sinc(5t)}
1画出该信号和它的幅度谱
2求出该信号的预包络,并画出其中的幅度谱
3求出并画出该信号的包络

回复列表 (共2个回复)

沙发

%the original signal
ts=0.002;
fs=1/ts;
t=[-2:ts:2];
n=length(t);
x=2*sinc(20*t).*cos(2*pi*100*t+sinc(5*t));
plot(t,x)
pause

[X,f]=fftseq(x,ts);
plot(f,fftshift(abs(X)))
pause

z=hilbert(x);
[Z,f]=fftseq(z,ts);
plot(f,fftshift(abs(Z)))
pause

%xh=imag(z);
xh=(z-x).*(-j);
A=sqrt(x.^2+xh.^2);
plot(t,A)
pause

板凳

%File:fftseq.m
function[M,f]=fftseq(m,ts)
fs=1/ts;
n=length(m);
N=2^(nextpow2(n));
M=fft(m,N);
M=M/fs;
df=fs/N;
f=[0:df:df*(N-1)]-fs/2;
呵呵,多多交流

我来回复

您尚未登录,请登录后再回复。点此登录或注册