• 听雪楼一号
    了解作者
  • matlab
    开发工具
  • 56KB
    文件大小
  • rar
    文件格式
  • 0
    收藏次数
  • 1 积分
    下载积分
  • 0
    下载次数
  • 2020-12-31 23:07
    上传日期
对随机信号进行相干解调,并且分析误码率随信噪比变化的趋势,画出波形。
shiyan.rar
  • shiyan.doc
    136.5KB
内容介绍
<html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta charset="utf-8"> <meta name="generator" content="pdf2htmlEX"> <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> <link rel="stylesheet" href="https://static.pudn.com/base/css/base.min.css"> <link rel="stylesheet" href="https://static.pudn.com/base/css/fancy.min.css"> <link rel="stylesheet" href="https://static.pudn.com/prod/directory_preview_static/622bb9873d2fbb00076ce3f1/raw.css"> <script src="https://static.pudn.com/base/js/compatibility.min.js"></script> <script src="https://static.pudn.com/base/js/pdf2htmlEX.min.js"></script> <script> try{ pdf2htmlEX.defaultViewer = new pdf2htmlEX.Viewer({}); }catch(e){} </script> <title></title> </head> <body> <div id="sidebar" style="display: none"> <div id="outline"> </div> </div> <div id="pf1" class="pf w0 h0" data-page-no="1"><div class="pc pc1 w0 h0"><img class="bi x0 y0 w1 h1" alt="" src="https://static.pudn.com/prod/directory_preview_static/622bb9873d2fbb00076ce3f1/bg1.jpg"><div class="c x0 y1 w2 h2"><div class="t m0 x1 h3 y2 ff1 fs0 fc0 sc0 ls0 ws0">i=10;<span class="fc1">%<span class="ff2">&#30721;&#20803;&#25968;</span></span></div><div class="t m0 x1 h3 y3 ff1 fs0 fc0 sc0 ls0 ws0">j=5000;<span class="fc1">% <span class="ff2">&#30690;&#37327;&#22810;&#19968;&#28857;&#21487;&#20197;&#26356;&#30452;&#35266;&#30475;&#28165;&#21518;&#38754;&#27874;&#24418;&#30340;&#21464;&#21270;&#65292;&#21487;&#20197;&#22810;&#35797;&#20960;&#27425;&#23547;&#25214;</span></span></div><div class="t m0 x1 h4 y4 ff1 fs0 fc0 sc0 ls0 ws0">Rb=5;</div><div class="t m0 x1 h3 y5 ff1 fs0 fc0 sc0 ls0 ws0">a=round(rand(1,i));<span class="fc1">%<span class="ff2">&#20135;&#29983;&#38543;&#26426;&#24207;&#21015;</span></span></div><div class="t m0 x1 h3 y6 ff1 fs0 fc0 sc0 ls0 ws0">t=linspace(0,5,j);<span class="fc1">%0-5<span class="_ _0"> </span><span class="ff2">&#20043;&#38388;&#20135;&#29983;<span class="_ _0"> </span></span>5000<span class="_ _0"> </span><span class="ff2">&#20010;&#28857;&#34892;&#30690;&#37327;</span></span></div><div class="t m0 x1 h3 y7 ff1 fs0 fc0 sc0 ls0 ws0">f1=50;<span class="fc1">%<span class="ff2">&#36733;&#27874;<span class="_ _0"> </span></span>1<span class="_ _0"> </span><span class="ff2">&#39057;&#29575;</span></span></div><div class="t m0 x1 h3 y8 ff1 fs0 fc0 sc0 ls0 ws0">f2=100;<span class="fc1">%<span class="ff2">&#36733;&#27874;<span class="_ _0"> </span></span>2<span class="_ _0"> </span><span class="ff2">&#39057;&#29575;</span></span></div><div class="t m0 x1 h3 y9 ff1 fs0 fc0 sc0 ls0 ws0">fm=i/5;<span class="fc1">%<span class="ff2">&#22522;&#24102;&#20449;&#21495;&#39057;&#29575;</span></span></div><div class="t m0 x1 h3 ya ff1 fs0 fc0 sc0 ls0 ws0">st1=t;<span class="fc1">%<span class="ff2">&#20135;&#29983;&#22522;&#24102;&#20449;&#21495;</span></span></div><div class="t m0 x1 h4 yb ff1 fs0 fc2 sc0 ls0 ws0">for<span class="fc0"> n=1:10</span></div><div class="t m0 x1 h4 yc ff1 fs0 fc0 sc0 ls0 ws0"> <span class="fc2">if</span> a(n)&lt;1</div><div class="t m0 x1 h4 yd ff1 fs0 fc0 sc0 ls0 ws0"> <span class="fc2">for</span> m=j/i*(n-1)+1:j/i*n</div><div class="t m0 x1 h4 ye ff1 fs0 fc0 sc0 ls0 ws0"> st1(m)=0;</div><div class="t m0 x1 h4 yf ff1 fs0 fc0 sc0 ls0 ws0"> <span class="fc2">end</span></div><div class="t m0 x1 h4 y10 ff1 fs0 fc0 sc0 ls0 ws0"> <span class="fc2">else</span></div><div class="t m0 x1 h4 y11 ff1 fs0 fc0 sc0 ls0 ws0"> <span class="fc2">for</span> m=j/i*(n-1)+1:j/i*n</div><div class="t m0 x1 h4 y12 ff1 fs0 fc0 sc0 ls0 ws0"> st1(m)=1;</div><div class="t m0 x1 h4 y13 ff1 fs0 fc0 sc0 ls0 ws0"> <span class="fc2">end</span></div><div class="t m0 x1 h4 y14 ff1 fs0 fc0 sc0 ls0 ws0"> <span class="fc2">end</span></div><div class="t m0 x1 h4 y15 ff1 fs0 fc2 sc0 ls0 ws0">end</div><div class="t m0 x1 h3 y16 ff1 fs0 fc0 sc0 ls0 ws0">st2=t;<span class="fc1">%<span class="ff2">&#22522;&#24102;&#20449;&#21495;&#27714;&#21453;</span></span></div><div class="t m0 x1 h4 y17 ff1 fs0 fc2 sc0 ls0 ws0">for<span class="fc0"> n=1:j</span></div><div class="t m0 x1 h4 y18 ff1 fs0 fc0 sc0 ls0 ws0"> <span class="fc2">if</span> st1(n)&gt;=1</div><div class="t m0 x1 h4 y19 ff1 fs0 fc0 sc0 ls0 ws0"> st2(n)=0;</div><div class="t m0 x1 h4 y1a ff1 fs0 fc0 sc0 ls0 ws0"> <span class="fc2">else</span></div><div class="t m0 x1 h4 y1b ff1 fs0 fc0 sc0 ls0 ws0"> st2(n)=1;</div><div class="t m0 x1 h4 y1c ff1 fs0 fc0 sc0 ls0 ws0"> <span class="fc2">end</span></div><div class="t m0 x1 h4 y1d ff1 fs0 fc2 sc0 ls0 ws0">end</div><div class="t m0 x1 h3 y1e ff1 fs0 fc1 sc0 ls0 ws0">%st1<span class="_ _0"> </span><span class="ff2">&#20026;&#22522;&#24102;&#20449;&#21495;&#65292;</span>st2<span class="_ _0"> </span><span class="ff2">&#20026;&#22522;&#24102;&#20449;&#21495;&#21453;&#30721;</span></div><div class="t m0 x1 h4 y1f ff1 fs0 fc0 sc0 ls0 ws0">figure(1);</div><div class="t m0 x1 h4 y20 ff1 fs0 fc0 sc0 ls0 ws0">subplot(211);</div><div class="t m0 x1 h4 y21 ff1 fs0 fc0 sc0 ls0 ws0">plot(t,st1);</div><div class="t m0 x1 h3 y22 ff1 fs0 fc0 sc0 ls0 ws0">title(<span class="fc3">'<span class="ff2">&#22522;&#24102;&#20449;&#21495;</span>'</span>);</div><div class="t m0 x1 h4 y23 ff1 fs0 fc0 sc0 ls0 ws0">axis([0,5,-1,2]);</div><div class="t m0 x1 h4 y24 ff1 fs0 fc0 sc0 ls0 ws0">subplot(212);</div><div class="t m0 x1 h4 y25 ff1 fs0 fc0 sc0 ls0 ws0">plot(t,st2);</div><div class="t m0 x1 h3 y26 ff1 fs0 fc0 sc0 ls0 ws0">title(<span class="fc3">'<span class="ff2">&#22522;&#24102;&#21453;&#20449;&#21495;</span>'</span>);</div><div class="t m0 x1 h4 y27 ff1 fs0 fc0 sc0 ls0 ws0">axis([0,5,-1,2]);</div><div class="t m0 x1 h4 y28 ff1 fs0 fc0 sc0 ls0 ws0"> </div><div class="t m0 x1 h4 y29 ff1 fs0 fc0 sc0 ls0 ws0">s1=cos(2*pi*f1*t);</div><div class="t m0 x1 h4 y2a ff1 fs0 fc0 sc0 ls0 ws0">s2=cos(2*pi*f2*t);</div></div></div><div class="pi" data-data='{"ctm":[1.568627,0.000000,0.000000,1.568627,0.000000,0.000000]}'></div></div> </body> </html>
评论
    相关推荐