How do i quantize data with N levels?
2 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
I have the following code and have to quantize Y with N=8 levels in the uniform quantizer. Can you help me about it? Thank you in advance.
close all;
clear all;
rand('seed', sum(100*clock));
x1 = 0 + (4-0) .* rand(1000000,1);
x2 = -2 + (0-(-2)) .* rand(1000000,1);
y=x1+x2;
ymeansquared=mean(y.^2);
0 Kommentare
Antworten (1)
Siehe auch
Kategorien
Mehr zu Cast and Quantize Data finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!