function vect = iq(levelNumbers, bits)
%...'levelNumber' contains the the index of the quantized level for each sample
%...'vect' is vector containing the reconstructed values
[M,N] = size(levelNumbers);
if (M>1)
levelNumbers = levelNumbers'
end
base = -1;
high = 1;
range = 2;
delta = range/2^(bits);
levels = 2^bits;
%quantValues = [base : delta : (high-delta/2)]' + delta/2;
quantValues = [base : delta : (high-delta/2)]';
vect = quantValues(levelNumbers);
Inverse full range quantization
-
by farsun 2:37 AM
-
Tags:
About The Author
Ut dignissim aliquet nibh tristique hendrerit. Donec ullamcorper nulla quis metus vulputate id placerat augue eleifend. Aenean venenatis consectetur orci, sit amet ultricies magna sagittis vel. Nulla non diam nisi, ut ultrices massa. Pellentesque sed nisl metus. Praesent a mi vel ante molestie venenatis.
Related Posts
Connect With Us
Recommend us on Google!
0 comments