?? decode_ml23_bpsk.m
字號:
function x_f=decode_ML22_BPSK(H,L,R1,R2,R3)
x_f=[];
for i=1:L,
a=R1(i);
b=R2(i);
c=R3(i);
r=[a b c].';
s=[];
s0=[-1 1];
for m1=1:2
for m2=1:2
s1=[s0(m1);s0(m2)];
s=[s s1];
end
end
estimate=[];
for m3=1:4
estimate1=r-H*s(:,m3);
estimate=[estimate estimate1];
end
[gk k0]=min(sum(abs(estimate).^2,1));
x_f_t=dec2bin(k0-1,2)-48;
x_f=[x_f x_f_t];
end
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -