title: Quantizing a complex signal with uniform quantizer in matlab
body: <p>I have a signal that has complex normal distribution with mean 0 and variance of 1. I want to quantize it with a uniform quantizer to 512 levels. I am generating the signal in MATLAB in the following way-</p>
  
  <pre><code>s = sqrt(0.5).*(randn(1,numBits) + 1i*randn(1,numBits));
  </code></pre>
  
  <p>I am quantizing the signal in the range(-1,1) with 512 levels in the following way:</p>
  
  <pre><code>min = -1;
  
  max = 1;
  
  q = (max-min)/2^9;
  
  quantSignal = round(s/q)*q;
  </code></pre>
  
  <p>Is it a correct way of quantizing such a signal? I would appreciate any input on this.</p>