数字调制系统在Matlab下的分析
特点:"1"码期间有等幅正弦波输出,相当于开关开通;"0"码期间无输出,相当于开关切断。因此,数字调幅又称为开关键控(通断键控),记作OOK(On Off Keying)。
两种调制方法如图3:
图3 2ASK的两种调制方法
2ASK在matlab下的仿真如下:
clear all
close all
i=10;
j=5000;
t=linspace(0,5,j);%取0,0.001,0.002,。。。5 共5001个点
fc=10;
fm=i/5;
B=2*fc; %产生基带信号
a=round(rand(1,i));%随机序列
figure(2)
plot(rand(1,i))
st=t;
for n=1:10
if a(n)<1;
for m=j/i*(n-1)+1:j/i*n %一个信号取500个点
st(m)=0;
end
else
for m=j/i*(n-1)+1:j/i*n
st(m)=1;
end
end
end
figure(1);
subplot(421);
plot(t,st);
axis([0,5,-1,2]);
title('基带信号');
s1=cos(2*pi*fc*t); %载波
subplot(422);
plot(s1);
title('载波信号');
e_2ask=st.*s1; %调制
subplot(423);
plot(t,e_2ask);
title('已调信号');
noise =rand(1,j);
e_2ask=e_2ask+noise;%加入噪声
subplot(424);
plot(t,e_2ask);
title('加入噪声的信号');
at=e_2ask.*cos(2*pi*fc*t); %相干解调
at=at-mean(at);
subplot(425);
plot(t,at);
title('相乘后信号');
[f,af] = T2F(t,at);%通过低通滤波器
[t,at] = lpf(f,af,2*fm);
subplot(426);
plot(t,at);
title('解调后波形');
for m=0:i-1; %抽样判决
if at(1,m*500+250)+0.5<0.5;

图片新闻
最新活动更多
-
2月25日火热报名中>> Ansys Motion薄膜卷曲卷对卷工艺仿真解决方案
-
限时免费立即试用>> 燧石技术,赋光智慧,超越感知
-
2月28日火热报名中>> 【免费试用】东集技术年终福利——免费试用活动
-
即日-3.21立即报名 >> 【深圳 IEAE】2025 消费新场景创新与实践论坛
-
3月27日立即报名>> 【工程师系列】汽车电子技术在线大会
-
4日10日立即报名>> OFweek 2025(第十四届)中国机器人产业大会
推荐专题
-
10 一周全球半导体融资汇总
发表评论
请输入评论内容...
请输入评论/评论长度6~500个字
暂无评论
暂无评论