1.软件版本
MATLAB2013b
2.本算法理论知识
3.核心代码
登录后复制
NUMS = 20000;Bits = round(rand(1,NUMS)>=0.5);f1 = 1;f2 = 2;Scale= 50;t = 0:1/Scale:1-1/Scale;As = 1;%FSKBits0 = sin(2*pi*f1*t);Bits0 = Bits0/sqrt(sum(Bits0.^2));Bits1 = sin(2*pi*f2*t);Bits1 = Bits1/sqrt(sum(Bits1.^2));fsk = [];for i=1:NUMS if Bits(i)==1 fsk=[fsk Bits1]; else fsk=[fsk Bits0]; endendfiguresubplot(211)stairs(0:10,[Bits(1:10) Bits(10)],'linewidth',1.5)axis([0 10 -0.5 1.5])title('Message Bits');grid onsubplot(212)tb=0:1/Scale:10-1/Scale;plot(tb, fsk(1:10*Scale),'r','linewidth',1.5)title('FSK调制');grid on.....................1.2.3.4.5.6.7.8.9.10.11.12.13.14.15.16.17.18.19.20.21.22.23.24.25.26.27.28.29.30.31.32.33.34.35.
4.操作步骤与仿真结论
免责声明:本文系网络转载或改编,未找到原创作者,版权归原作者所有。如涉及版权,请联系删