资源简介
bpsk在瑞利信道下的误码率与信噪比的关系,通信相关专业用处较大。

代码片段和文件信息
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% All rights reserved by Krishna Pillai http://www.dsplog.com
% The file may not be re-distributed without explicit authorization
% from Krishna Pillai.
% Checked for proper operation with Octave Version 3.0.0
% Author : Krishna Pillai
% Email : krishna@dsplog.com
% Version : 1.0
% Date : 8 August 2008
% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% script for computing the BER for BPSK modulation in a
% Rayleigh fading channel
clear
N = 10^6 % number of bits or symbols
% Transmitter
ip = rand(1N)>0.5; % generating 01 with equal probability
s = 2*ip-1; % BPSK modulation 0 -> -1; 1 -> 0
Eb_N0_dB = [-3:35]; % multiple Eb/N0 values
for ii = 1:length(Eb_N0_dB)
n = 1/sqrt(2)*[randn(1N) + j*randn(1N)]; % white gaussian noise 0dB variance
h = 1/sqrt(2)*[randn(1N) + j*randn(1N)]; % Rayleigh channel
% Channel and noise Noise addition
y = h.*s + 10^(-Eb_N0_dB(ii)/20)*n;
% equalization
yHat = y./h;
% receiver - hard decision decoding
ipHat = real(yHat)>0;
% counting the errors
nErr(ii) = size(find([ip- ipHat])2);
end
simBer = nErr/N; % simulated ber
theoryBerAWGN = 0.5*erfc(sqrt(10.^(Eb_N0_dB/10))); % theoretical ber
EbN0Lin = 10.^(Eb_N0_dB/10);
theoryBer = 0.5.*(1-sqrt(EbN0Lin./(EbN0Lin+1)));
% plot
close all
figure
semilogy(Eb_N0_dBtheoryBerAWGN‘cd-‘‘LineWidth‘2);
hold on
semilogy(Eb_N0_dBtheoryBer‘bp-‘‘LineWidth‘2);
semilogy(Eb_N0_dBsimBer‘mx-‘‘LineWidth‘2);
axis([-3 35 10^-5 0.5])
grid on
legend(‘AWGN-Theory‘‘Rayleigh-Theory‘ ‘Rayleigh-Simulation‘);
xlabel(‘Eb/No dB‘);
ylabel(‘Bit Error Rate‘);
title(‘BER for BPSK modulation in Rayleigh channel‘);
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 1813 2010-04-16 03:23 BER for BPSK in Rayleigh channel.m
----------- --------- ---------- ----- ----
1813 1
- 上一篇:希赛软件设计师教程和几套试题(1).txt
- 下一篇:udp组播客户端和服务器端代码
相关资源
- 瑞利信道的仿真,包括信号的调制,
- BFSK/BPSK-BER 蒙特卡洛仿真程序
- ofdm通过瑞利衰落信道的系统仿真
- bpsk 计算误码率
- 使用半分析半仿真的方法进行QPSK系统
- 论文研究 - 从上方加热的半开放式人
- 基于多径传输和多普勒频移的 瑞利
- 关于BPSK、QPSK、MSK、QAM的调制与解调
- 基于PFGA的bpsk仿真.zip
- QPSK与BPSK的锁相环仿真源码
- 数字通信系统中BPSK/ 4-QAM调制与脉冲成
- 基于Verilog的BPSK
- bpsk qpsk 16qam 64qam调制解调 包括误码率
- 高斯瑞利分布下qpsk和QAM的误码率分析
- 瑞利信道仿真 BPSK QPSK QAM
- ofdm误码率qam和bpsk对比
- BPSKQPSK2FSK16QAM64QAM信号在高斯信道与莱
- 16QAM在瑞利信道下的误码率
- m序列编码成的BPSK信号仿真
- 在三条径的瑞利信道中,对于直接序
- 瑞利莱斯对数正态分布仿真
- 瑞利信道仿真程序
- bpsk二相编码信号信号的产生
- 关于Rayleigh和AWGN信道的BPSK仿真
- LDPC码在BPSK调制下的通过AWGN 信道下的
- BPSK调制器基带脉冲成型滤波器的仿真
- 跳频信号-BPSK调制
- 瑞利衰落信道的仿真.doc
- 瑞利噪声叠加到图像
- 瑞利信道下的分集合并技术仿真
评论
共有 条评论