- 经验
- 262
- 分贝
- 0
- 家园分
- 2242
- 在线时间:
- 1849 小时
- 最后登录:
- 2024-11-15
- 帖子:
- 150
- 精华:
- 0
- 注册时间:
- 2008-4-16
- UID:
- 227898
注册:2008-4-163
|
发表于 2012-7-16 22:11:46
|显示全部楼层
PM
Fs=100;
Fc=10;
t=[0:200]/Fs;
x=sin(2*pi*t);
kp = pi/max(max(abs(x)));
y = cos(2*pi*Fc*t + kp*x);
yq = hilbert(y).*exp(-j*2*pi*Fc*t);
x1=unwrap(angle(yq));
subplot(3,1,1);
plot(x);
subplot(3,1,2);
plot(y);
subplot(3,1,3);
plot(x1);
FM
Fs=100;
Fc=10;
t=[0:200]/Fs;
x=sin(2*pi*t);
kf = (Fc/Fs)*2*pi/max(max(abs(x)));
y = cos(2*pi*Fc*t + kf*cumsum(x));
yq = hilbert(y).*exp(-j*2*pi*Fc*t);
x1=diff(unwrap(angle(yq)));
[b,a]=butter(3,Fc*2/Fs);
x2= filtfilt(b,a,x1);
subplot(3,1,1);
plot(x);
subplot(3,1,2);
plot(y);
subplot(3,1,3);
plot(x2);
am dsb
Fs=100;
Fc=10;
t=[0:200]/Fs;
x=sin(2*pi*t);
y = x.*cos(2*pi*Fc*t);
x1= y.*cos(2*pi*Fc*t);
[b,a]=butter(5,Fc*2/Fs);
x2 = filtfilt(b,a,x1);
subplot(3,1,1);
plot(x);
subplot(3,1,2);
plot(y);
subplot(3,1,3);
plot(x2);
ssb
Fs=100;
Fc=10;
t=[0:200]/Fs;
x=sin(2*pi*t);
y = x.*cos(2*pi*Fc*t) + imag(hilbert(x)).*sin(2*pi*Fc*t);
x1= y.*cos(2*pi*Fc*t);
[b,a]=butter(5,Fc*2/Fs);
x2 = filtfilt(b,a,x1);
subplot(3,1,1);
plot(x);
subplot(3,1,2);
plot(y);
subplot(3,1,3);
plot(x2);
|
|