data.m
来自「The result is an IS-95CDMA forward link 」· M 代码 · 共 19 行
M
19 行
function info=Data(L)
%generate user data for a 20ms frame, there is 172 bits of information,12bits of CRC and 8 bits of Encoder tail
%We first generate the 184(information +CRC) bits using the randn function then
d=randn(1,L-8);
%then we perform the function a decision device any bits below 0 then we make it a 0 else a 1
for (i=1:L-8)
if(d(i)>=0)
d(i)=1;
else
d(i)=0;
end
end
%add 8bits of encoder tail which the viberti decoder can dectect.
info=[d,0,0,0,0,0,0,0,0];
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?