资源简介
可见光通信中,采用OOKNRZ调制方式时的系统误码率,没问题的。
代码片段和文件信息
clear
clear all
close all
q=1.6e-19;
% Charge of Electron
Ib=202e-6;
% Background Noise Current+interfernce
N0=2*q*Ib;
% Noise Spectral Density 2*q*Ib
Rb=1e6;
% bit rate.
Tb=1/Rb;
% bit duration
R=1;
% Receiver responsivity.
sig_length=1e5;
% No. of bits in the input OOK symbols.
snr_dB=0:9;
% signal-to-noise ratio in dB.
SNR=10.^(snr_dB./10);
% signal-to-noise ratio
for i=1:length(snr_dB)
P_avg(i)=sqrt(N0*Rb*SNR(i)/(2*R^2));
% average optical power
i_peak(i)=2*R*P_avg(i);
% peak photocurrent
Ep(i)=i_peak(i)^2*Tb;
% Peak Energy
sgma(i)=sqrt(N0*Ep(i)/2);
% sigma standard deviation of noise after matched filter
th=0.5*Ep(i);
% threshold level
Tx=randint(1sig_length);
% transmitted bit
for j=1 : sig_length;
MF(j)=Tx(j)*Ep(i)+gngauss(sgma(i));
%matched filter output
end
Rx=zeros(1sig_length);
Rx(find(MF>th))=1;
%threshold detection
[No_of_Error(i) ber(i)]=biterr(TxRx);
end
figure;
semilogy(snr_dBber‘b‘);
hold on
semilogy(snr_dBqfunc(sqrt(10.^(snr_dB/10)))‘r-X‘‘linewidth‘2);
% theoretical ber ‘mx-‘);
grid on
legend(‘simulation‘‘theory‘);
xlabel(‘snr_dB dB‘);
ylabel(‘Bit Error Rate‘);
title(‘Bit error probability curve for OOK modulation using Matched‘)
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 1235 2020-09-20 14:57 SimulateBERofOOKNRZ.m
相关资源
- FBMC_OQAM-system 讲解FBMC系统的编解码
- BER性能仿真(FBMC QAM )
- Hilbert
- 5G_FBMC_BER
- 计算单模光纤的色散曲线 SMF-dispersi
- MeMBer-filter-label 有标记的势均衡多目标
- ber_linear_detection MIMO系统线性检测算法
- 3kW-LLC
- MATLAB-Identification-number 基于matlab 写的
- EMD-hilbert-IMF 本程序主要通过EMD和hil
- MicrophoneArrayDereverberation 4元麦克风阵列
- visible-led-communication 这里给出了几个可
- BER_OFDM_OQAM OFDM/OQAM系统代码
- MAssive-MIMO2458265
- FSO_Analysis 自由空间光通信系统在大气
- Dereverberation 通常语音信号在增强时会
- The-Hilbert-transform
- visible_light_communication 可见光通信系统
- laser_New 光纤激光器仿真程序
- GS-algorithm Gerchberg-Saxton算法实现对图像
- EMD+相关系数+Hilbert+包络谱
- levenberg_Marquardt算法
- 瑞利信道误码率
- 希尔伯特黄变换matlab函数包
- Levenberg–Marquardt Matlab代码
- MATLAB希尔伯特Hilbert变换求包络谱源程
- ssh框架进行连接mysql的配置
- 黑莓App world3.1版
- HHT 希尔伯特黄变换 Hilbert-Huang transf
评论
共有 条评论