I have a channel matrix, H, which contains the complex entries. I want to obtain the quantization of this matrix. For instance,

H=[1+2i,2-3i;5+3i,9-8i]; Q(H)?

Where Q is a quantization function. I found something on google but it is only to deal with a vector having real numbers. The code is given below.

t = [0:.1:2*pi]; % Times at which to sample the sine function

sig = sin(t); % Original signal, a sine wave

partition = [-1:.5:1]; % 2 bit quantizer

codebook = [-1.5:.5:1]; % 2 bit quantizer

[index,quants] = quantiz(sig,partition,codebook); % Quantize.

plot(t,sig,'x',t,quants,'.')

legend('Original signal','Quantized signal');

More Muhammad Karam Shehzad's questions See All
Similar questions and discussions