function [ qk ] = quant9( a ) %QUANT3_4 Summary of this function goes here % Detailed explanation goes here %Uniform quantization to 2-bits if ( abs(a) > 1) a = a / abs(a); end %Yields 0 to 4 qk = round(2*a) + 2; %chop down to within the 2 bits. if (qk == 4) qk = qk - 1; end