This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English verison of the page.

Note: This page has been translated by MathWorks. Please click here
To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.


Variance of quantization error


v = errvar(q)


v = errvar(q) returns the variance of a uniformly distributed random quantization error that arises from quantizing a signal by quantizer object q.

    Note   The results are not exact when the signal precision is close to the precision of the quantizer.


Find v, the variance of the quantization error for quantizer object q:

q = quantizer;
v = errvar(q)

v =


Now compare v to v_est, the sample variance from a Monte Carlo experiment:

r = realmax(q);
      u = 2*r*rand(1000,1)-r;  % Original signal
      y = quantize(q,u);     % Quantized signal
      e = y - u;           % Error
      v_est = var(e)     % Estimate of the error variance

v_est =


See Also

| |

Introduced in R2008a

Was this topic helpful?