![]() ![]() In class we showed that for a sinusoidal signal the SQNR (Signal to Quantization Noise Ratio) given by Note: whenever you have a number in a computer it is quantized - however the "exact" signal above is a 64 bit signal, so we will consider it to be exact). Quantization error (i.e., e) is shown in green. X), the sampled and quantized signal (i.e., x q), and the In this diagram the sampled (but not yet quantized) signal is in blue (i.e., This is demonstrated below where the input signal, x, is When a signal is digitized, quantization errors In the diagram below the quantization noise is labeled The quantization process is often modeled as a "quantization noise" beingĪdded to a signal. Signal being sampled is assigned a discrete value so it can be used inside ![]() In practice the sampling process also involves "quantization" in which the How to plot several functions with different line styles. Qualitatively and quantitatively explain your results. The three stem plots that correspond to the three signals sampled at 10 On one graph plot three sinusoids with frequencies of 3 Hz, 7 Hz and 13 Hz. I input data specified by the user are are the length of the sequence (L), the Note that the legend command for a stemįunctions in MATLAB to generate the two sequences shown and plot them using Note that n=1 is taken as the origin, since MATLAB can't handleĪrray indices equal to zero. Then plot them all on the same axes with a Ramp function for a sequence of length 10. Change the plots so that the indexes start at 0 (otherwise the plots should look identical - don't shift the data, just adjust the x axis).Ĭreate a simple m-file that creates a unit sample, unit step, and unit The above examples are plotted against the MATLAB index. ![]() If we have a digital signal, d, we will take the first value to have an index of 0, while MATLAB starts its indexing at 1. The example above shows a "feature" of MATLAB we will have to contend with throughout the semester. Since MATLAB can't handle array indices equal to zero. Make sure the graphs are labeled and the axes are Write a similar function for a delayed sample sequence dmįor N=8, M=4, make a figure with two subplots that shows d and dm, like Time, please come talk to me and I'll help you. This lab is a brief refresher for MATLAB, and an introduction to some of E71 Lab 1 - MATLAB Review A (Re)Introduction to MATLAB and an Introduction to Quantization ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |