필터 지우기
필터 지우기

How do i quantize data with N levels?

조회 수: 2 (최근 30일)
Deniz Bozdogan
Deniz Bozdogan 2021년 11월 3일
답변: Scott MacKenzie 2021년 11월 3일
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);

답변 (1개)

Scott MacKenzie
Scott MacKenzie 2021년 11월 3일
y1 = discretize(y,8);

카테고리

Help CenterFile Exchange에서 Timing and presenting 2D and 3D stimuli에 대해 자세히 알아보기

제품


릴리스

R2021b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by