This version of sdbm merely has all the dbm_* names translated to sdbm_*
so that we can link ndbm and sdbm into the same executable. (It also has
the bad() macro redefined to allow a zero-length ke
%绘制不同信噪比下的误码率曲线
echo on
clear all
close all
snr_in_DB=0:1:10;
for i=1:length(snr_in_DB)
pr_e_r(i)=PrimePe(snr_in_DB(i)); %未编码
end
for i=1:length(snr_in_DB)
e_r(i)=PrimePe_eiw(snr_in
%交织度为8的交织
function u=INTER_WEAVE_8(d)
N=length(d)/456;%桢数
C=reshape(d,456,N);
C=C';
u=zeros(4*N+4,114);
for n=1:N
for k=0:455
b=mod(k,8)+4*(n-1);
j=2*mod(49*k,57)+floor(mod(k,8)/4);
%绘制不同信噪比下的误码率曲线
echo on
clear all
close all
snr_in_DB=-4:2:6;
SNR_in_DB=-4:0.1:6;
for i=1:length(snr_in_DB) %仿真值
s_e_r(i)=PrimePe(snr_in_DB(i));
end
for i=1:length(SNR_in_DB)
%交织度为8的交织
function u=INTER_WEAVE_8(d)
N=length(d)/456;%桢数
C=reshape(d,456,N);
C=C';
u=zeros(4*N+4,114);
for n=1:N
for k=0:455
b=mod(k,8)+4*(n-1);
j=2*mod(49*k,57)+floor(mod(k,8)/4);