quantl.m

来自「ofdm是比较常用的调制方式」· M 代码 · 共 21 行

M
21
字号
%**************************************************************
%quantl: quantize the difference signal in the lower sub-band
%**************************************************************%
    function y = quantl(el,detl)
    table_set;
    % abs of difference signal %
    wd = abs(el);
	% determine mil based on decision levels and detl gain %
    for mil=1:30
        decis = floor(decis_levl(mil)*detl*(2^-15));
        if(wd < decis)
        break;
        end;
    end;
	% if mil=30 then wd is less than all decision levels %

    if(el >= 0) ril = quant26bt_pos(mil);
    else ril = quant26bt_neg(mil);
    end;
    y =ril;

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?