- 信号发生器,如产生正弦波和余弦波的振荡器
- 线性时不变滤波器,其增大或减小信号中特定频率或频率范围的幅度
- 采样器,其将模拟(连续时间)信号变为离散时间信号
- 静态非线性,如平方器和量化器,它可以将频率内容添加到信号中
- 线性时变系统,如以有用和可理解的方式移动频率的混频器
- 自适应元件,跟踪随时间缓慢变化的参数的期望值
信号的频谱
例子:方波信号的频谱
f=10;% frequency
time=10;%;%length of time
Ts=1/1000;%time interval between samples
t=Ts:Ts:time;
x=sign(cos(2*pi*f*t));
plotspec(x,Ts)
振荡器
%余弦信号及频谱
f=10;
phi=0;
time=2;
Ts=1/100;
t=Ts:Ts:time;
x=cos(2*pi*f*t+phi);
subplot(2,1,1)
plot(t,x)
subplot(2,1,2)
plotspec(x,Ts)
线性滤波器
仿真:生成随机噪声,用低通、带通和高通对其进行滤波。
clear all
time=3;
Ts=1/10000;
x=randn(1,time/Ts);
subplot(4,1,1),plotspec(x,Ts)
title("原始噪声信号")
b=firpm(100,[0 0.2 0.21 1],[1 1 0 0]);%lp filter
ylp=filter(b,1,x);
subplot(4,1,2),plotspec(ylp,Ts)
title("低通滤波")
b=firpm(100,[0 0.24 0.26 0.5 0.51 1],[0 0 1 1 0 0]);
ybp=filter(b,1,x);
subplot(4,1,3),plotspec(ybp,Ts)
title("带通滤波")
b=firpm(100,[0 0.74 0.76 1],[0 0 1 1]);
yhp=filter(b,1,x);
subplot(4,1,4),plotspec(yhp,Ts)
title("高通滤波")
静态非线性因素--平方器
混频器
clear all
time=0.5;
Ts=1/10000;
t=Ts:Ts:time;
fc=1000;cmod=cos(2*pi*fc*t);
fi=100;x=cos(2*pi*fi*t);
y=cmod.*x;
subplot(2,1,1),plotspec(x,Ts)
title("信号频谱")
subplot(2,1,2),plotspec(y,Ts)
title("载波调制后的频谱")
自适应调节(后续章节再具体仿真)