📄 3(1)包络检波.m
字号:
t=0:0.001:1;
x1=sin(2*pi*5*t);
subplot(2,4,1);
plot(t,x1);
x2=sin(2*pi*8*t);
subplot(2,4,2);
plot(t,x2);
x=x1+x2;
subplot(2,4,3);%信号图
plot(t,x);
xl=fft(x);
subplot(2,4,4);%信号频谱
plot(abs(xl));
j=sqrt(-1);
sl=x.*exp(j*2*pi*200*t);%已调信号
subplot(2,4,5);
plot(t,sl);
sl=awgn(sl,10);
subplot(2,4,6);
plot(t,real(sl));%加噪声后图
fc=200;
fs=1000;
sam=ssbdemod(sl,fc,fs,2./pi,b,a);%包络解波
subplot(2,4,7);
plot(t,sam);
xlabel('t');
title('包络解波sam波形');
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -