P_e_sd_o.m
上传用户:loeagle
上传日期:2013-03-02
资源大小:1236k
文件大小:1k
- function [p_err,gamma_db]=p_e_sd_o(gamma_db_l,gamma_db_h,k,n,d_min)
- % p_e_sd_o.m Matlab function for computing error probability in
- % soft-decision decoding of a linear block code
- % when orthogonal signaling is used.
- % [p_err,gamma_db]=p_e_sd_o(gamma_db_l,gamma_db_h,k,n,d_min)
- % gamma_db_l=lower E_b/N_0
- % gamma_db_h=higher E_b/N_0
- % k=number of information bits in the code
- % n=code block length
- % d_min=minimum distance of the code
- gamma_db=[gamma_db_l:(gamma_db_h-gamma_db_l)/20:gamma_db_h];
- gamma_b=10.^(gamma_db/10);
- R_c=k/n;
- p_err=(2^k-1).*q(sqrt(d_min.*R_c.*gamma_b));