0% found this document useful (0 votes)
44 views

Sampling and Quantization in Matlab: Oleh Albert Sagala

This document discusses sampling and quantization in MATLAB. It presents an example of sampling a continuous time signal into a discrete time sampled signal and then quantizing the sampled signal into a quantized digital signal. It shows the effects of varying the number of quantization levels (bits) and examines quantized signals using 3, 4, and 5 bits. The document also provides an example of a 2-bit flash analog-to-digital converter and references a MATLAB code website for further information.
Copyright
© © All Rights Reserved
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
44 views

Sampling and Quantization in Matlab: Oleh Albert Sagala

This document discusses sampling and quantization in MATLAB. It presents an example of sampling a continuous time signal into a discrete time sampled signal and then quantizing the sampled signal into a quantized digital signal. It shows the effects of varying the number of quantization levels (bits) and examines quantized signals using 3, 4, and 5 bits. The document also provides an example of a 2-bit flash analog-to-digital converter and references a MATLAB code website for further information.
Copyright
© © All Rights Reserved
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 15

Sampling and Quantization

in MATLAB
Oleh Albert Sagala

Sampling and Quantization in MATLAB 1


Sampling and Quantization in MATLAB 2
Sampling and Quantization in MATLAB 3
x(t) xs[n] xq[n]
0 0
0.0628 0.1253 0.1250
0.1253 0.2487 0.1250
0.1874 0.3681 0.1250
0.2487 0.4818 0.3750
0.3090 0.5878 0.3750
0.3681 0.6845 0.6250
0.4258 0.7705 0.6250
0.4818 0.8443 0.8750
0.5358 0.9048 0.8750
0.5878 0.9511 0.8750
0.6374 0.9823 0.8750
0.6845 0.9980 0.8750
0.7290 0.9980 0.8750
0.7705 0.9823 0.8750
0.8090 0.9511 0.8750
0.8443 0.9048 0.8750
0.8763 0.8443 0.8750
0.9048 0.7705 0.8750
0.9298 0.6845 0.8750
0.9511 0.5878 0.6250
0.9686 0.4818 0.6250
0.9823 0.3681 0.3750
0.9921 0.2487 0.3750
0.9980 0.1253 0.1250
1.0000 0.0000 0.1250
0.9980 -0.1253 0.1250
0.9921 -0.2487 -0.1250
0.9823 -0.3681 -0.1250
0.9686 -0.4818 -0.3750
0.9511 -0.5878 -0.3750
0.9298 -0.6845 -0.6250
Sampling and Quantization in MATLAB 4
0.9048 -0.7705 -0.6250
Sampling and Quantization in MATLAB 5
Quantized Signals : B=3, 4 , 5

Sampling and Quantization in MATLAB 6


Sampling and Quantization in MATLAB 7
Sampling and Quantization in MATLAB 8
Sampling and Quantization in MATLAB 9
Sampling and Quantization in MATLAB 10
Sampling and Quantization in MATLAB 11
Sampling and Quantization in MATLAB 12
Sampling and Quantization in MATLAB 13
Example of a 2-bit flash ADC

Sampling and Quantization in MATLAB 14


Reference
• Matlab Code: http://www.mathworks.co.uk

Sampling and Quantization in MATLAB 15

You might also like