<< Chapter < Page Chapter >> Page >
Submit your plot of "signal c" and its frequency spectrum.On your frequency plot, circle the first aliased component and label the value of its center frequency.Comment on the shape of the envelope of the spectrum.

Notice in the previous Scope output that the process of upsampling causes a decrease in the energy of thesample-and-hold representation by a factor of 4. This is the reason for using the Gain block.

Now determine the gain factor of the Gain block and the cutoff frequency of the Discrete-time LP filter needed to produce the desired interpolated signal.Run the simulation and observe the behavior of the system. After you get an accurate plot ofthe output frequency spectrum, print the output of the Spectrum Analyzer . Identify the change in the location ofthe aliased components in the output signal.

Submit your plot of "signal c" and its frequency spectrum.Give the values of the cutoff frequency and gain that were used. On your frequency plot, circle the locationof the first aliased component. Explain why discrete-time interpolation is desirable beforereconstructing a sampled signal.

Discrete-time decimation

For the following section, download the file music.au . For help on how to load and play sudio signals select the link.

In the previous section, we used interpolation to increase the sampling rate of a discrete-time signal.However, we often have the opposite problem in which the desired sampling rate is lower than the sampling rateof the available data. In this case, we must use a process called decimation to reduce the sampling rate of the signal.

Decimating , or downsampling , a signal x ( n ) by a factor of D is the process of creating a new signal y ( n ) by taking only every D t h sample of x ( n ) . Therefore y ( n ) is simply x ( D n ) . The frequency domain relationship between y ( n ) and x ( n ) can be shown to be the following:

Y ( e j ω ) = 1 D k = 0 D - 1 X ω - 2 π k D .

Notice the similarity of [link] to the sampling theorem equation in [link] . This similarity should be expected because decimation is the processof sampling a discrete-time signal. In this case, Y ( e j ω ) is formed by taking X ( e j ω ) in the interval [ - π , π ] and expanding it in frequency by a factor of D. Then it is repeated in frequency every 2 π , and scaled in amplitude by 1 / D . For similar reasons as described for equation [link] , aliasing will be prevented if in the interval [ - π , π ] , X ( e j ω ) is zero outside the interval [ - π / D , π / D ] . Then [link] simplifies to

Y ( e j ω ) = 1 D X e j ω D for ω [ - π , π ] .

A system for decimating a signal is shown in [link] . The signal is first filtered using a low pass filterwith a cutoff frequency of π / 2 rad/sample. This insures that the signal is band limited so that the relationshipin [link] holds. The output of the filter is then subsampledby removing every other sample.

This system decimates a discrete-time signal by a factor of 2.

For the following section download music.au . Read in the signal contained in music.au using auread , and then play it back with sound . The signal contained in music.au was sampled at 16 kHz, so it will sound much too slow when played backat the default 8 kHz sampling rate.

To correct the sampling rate of the signal, form a new signal, sig1, by selecting every other sample of the music vector.Play the new signal using sound , and listen carefully to the new signal.

Next compute a second subsampled signal, sig2 ,by first low pass filtering the original music vector using a discrete-time filter of length 20, andwith a cutoff frequency of π / 2 . Then decimate the filtered signal by 2,and listen carefully to the new signal.

You can filter the signal by using the Matlab command output = conv(s,h) , where s is the signal, and h is the impulse response of the desired filter. To design a length M low-pass filter with cutoff frequency W rad/sample, use the command h = fir1(M,W/pi) .
Hand in the Matlab code for this exercise. Also, comment on the quality of the audio signal generated byusing the two decimation methods. Was there any noticeable distortion in sig1 ? If so, describe the distortion.

Questions & Answers

how to create a software using Android phone
Wiseman Reply
how
basra
what is the difference between C and C++.
Yan Reply
what is software
Sami Reply
software is a instructions like programs
Shambhu
what is the difference between C and C++.
Yan
yes, how?
Hayder
what is software engineering
Ahmad
software engineering is a the branch of computer science deals with the design,development, testing and maintenance of software applications.
Hayder
who is best bw software engineering and cyber security
Ahmad
Both software engineering and cybersecurity offer exciting career prospects, but your choice ultimately depends on your interests and skills. If you enjoy problem-solving, programming, and designing software syste
Hayder
what's software processes
Ntege Reply
I haven't started reading yet. by device (hardware) or for improving design Lol? Here. Requirement, Design, Implementation, Verification, Maintenance.
Vernon
I can give you a more valid answer by 5:00 By the way gm.
Vernon
it is all about designing,developing, testing, implementing and maintaining of software systems.
Ehenew
hello assalamualaikum
Sami
My name M Sami I m 2nd year student
Sami
what is the specific IDE for flutter programs?
Mwami Reply
jegudgdtgd my Name my Name is M and I have been talking about iey my papa john's university of washington post I tagged I will be in
Mwaqas Reply
yes
usman
how disign photo
atul Reply
hlo
Navya
hi
Michael
yes
Subhan
Show the necessary steps with description in resource monitoring process (CPU,memory,disk and network)
samuel Reply
What is software engineering
Tafadzwa Reply
Software engineering is a branch of computer science directed to writing programs to develop Softwares that can drive or enable the functionality of some hardwares like phone , automobile and others
kelvin
if any requirement engineer is gathering requirements from client and after getting he/she Analyze them this process is called
Alqa Reply
The following text is encoded in base 64. Ik5ldmVyIHRydXN0IGEgY29tcHV0ZXIgeW91IGNhbid0IHRocm93IG91dCBhIHdpbmRvdyIgLSBTdGV2ZSBXb3puaWFr Decode it, and paste the decoded text here
Julian Reply
what to do you mean
Vincent
hello
ALI
how are you ?
ALI
What is the command to list the contents of a directory in Unix and Unix-like operating systems
George Reply
how can i make my own software free of cost
Faizan Reply
like how
usman
hi
Hayder
The name of the author of our software engineering book is Ian Sommerville.
Doha Reply
what is software
Sampson Reply
the set of intruction given to the computer to perform a task
Noor
Got questions? Join the online conversation and get instant answers!
Jobilize.com Reply

Get Jobilize Job Search Mobile App in your pocket Now!

Get it on Google Play Download on the App Store Now




Source:  OpenStax, Purdue digital signal processing labs (ece 438). OpenStax CNX. Sep 14, 2009 Download for free at http://cnx.org/content/col10593/1.4
Google Play and the Google Play logo are trademarks of Google Inc.

Notification Switch

Would you like to follow the 'Purdue digital signal processing labs (ece 438)' conversation and receive update notifications?

Ask