bpsk在瑞利信道matlab,请教BPSK在瑞利信道下的误码率仿真
請教BPSK在瑞利信道下的誤碼率仿真? 我這兩天剛學用Matlab進行通信仿真,下面是我建立的仿真模型及代碼,還有運行時的出錯分析,請問我錯在哪里?可以幫幫我嗎?國慶收假要交作業了.我摸索了好久都解成功不了. 這是我建立的仿真模型,在附件. 這是為仿真模型寫的M文件 %設置調制信號的抽樣間隔 xSampleTime=1/100000; %設置仿真時間的長度 xSimulationTime=10; %設置隨機數產生器的初始化種子 xInitialSeed=[61 71]; %設置BPSK調制的始相位 xPhaseOffset=0; %x表示信噪比的取值范圍 x=0:10; %y表示BPSK調制的誤符號率 y=x; hold off; xReceiveDelay=0; color='r'; for i=1:length(x) %信噪比依次取向量x的數值 xSNR=x(i); %執行BPSK仿真模型 sim('BPSK_Ray_ErrorRate'); %xErrorRate中獲得調制信號的誤碼率 y(i)=xErrorRate(1); end %繪制信噪比與誤碼率的關系曲線 semilogy(x,y,color); hold on; 下面是出錯分析: Warning: The model 'BPSK_Ray_ErrorRate' does not have continuous states, hence using the solver 'FixedStepDiscrete' instead of solver 'ode3'. You can disable this diagnostic by explicitly specifying a discrete solver in the solver tab of the Configuration Parameters dialog, or setting 'Automatic solver parameter selection' diagnostic to 'none' in the Diagnostics tab of the Configuration Parameters dialog. > In BPSK_Ray_ErrorRatemain at 23 ??? Error using ==> sim Cannot propagate non-frame data from output port 1 of 'BPSK_Ray_ErrorRate/Multipath Rayleigh Fading Channel/In' to input port 1 of 'BPSK_Ray_ErrorRate/Multipath Rayleigh Fading Channel/Channel Filter' because this input port expects frame data; consider inserting a Buffer. Error in ==> BPSK_Ray_ErrorRatemain at 23 sim('BPSK_Ray_ErrorRate');
2008-10-4 13:47 上傳
點擊文件名下載附件
5.51 KB, 下載次數: 24905
總結
以上是生活随笔為你收集整理的bpsk在瑞利信道matlab,请教BPSK在瑞利信道下的误码率仿真的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 测试面试题+测试面试宝典(分类版)
- 下一篇: 偷窥Selenium4 0带有网芯的相对