C114门户论坛百科APPEN| 举报 切换到宽版

亚星游戏官网

 找回密码
 注册

只需一步,快速开始

短信验证,便捷登录

搜索
查看: 3192|回复: 1

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

军衔等级:

亚星游戏官网-yaxin222  中士

注册: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);

举报本楼

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

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

GMT+8, 2024-11-17 18:54 , Processed in 0.135570 second(s), 15 queries , Gzip On.

Copyright © 1999-2023 C114 All Rights Reserved

Discuz Licensed

回顶部
XML 地图 | Sitemap 地图