通信人家园

 找回密码
 注册

只需一步,快速开始

短信验证,便捷登录

搜索
查看: 3207|回复: 1
打印

调制与解调MATLAB [复制链接]

军衔等级:

  中士

注册:2008-4-163
跳转到指定楼层
1#
发表于 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);

举报本楼

本帖有 1 个回帖,您需要登录后才能浏览 登录 | 注册
您需要登录后才可以回帖 登录 | 注册 |

手机版|C114 ( 沪ICP备12002291号-1 )|联系我们 |网站地图  

GMT+8, 2024-11-24 09:08 , Processed in 0.189636 second(s), 15 queries , Gzip On.

Copyright © 1999-2023 C114 All Rights Reserved

Discuz Licensed

回顶部