BASK幅度调制matlab

BASK幅度调制

  • 假设在1秒内传送10个比特,那么代码如下:
% one second
 t=0:1/1e3:0.999;
% Ten random 
a=randint(1,10,2);
% Ten rectanglure waveform 
g=ones(1,100); 
g=[g,g,g,g,g,g,9,9,g,g];
% Binary amplitude modulation s=a(ceil(10*t+0.01)).*g.* cos(2* pi*100*t);
% Drawing 
subplot(2,1,1); 
plot(t,a(ceil(10*t+0.01))); 
axis([0,1,0,1.2]); 
subplot(2,1,2); 
plot(t,s);

结果如下:
在这里插入图片描述

猜你喜欢

转载自blog.csdn.net/qq_40668383/article/details/106843990