Engineering
Engineering, 10.11.2019 02:31, alaynajk04

Sampling rate conversion rate changing is accomplished with a combination of upsampling (interpolation) and downsampling (decimation). in this problem you will consider how to properly perform sampling rate conversion. a) generate a test signal consisting of two sinusoidal components, one with a frequency of 0.02 times the sampling frequency, and the other with a frequency of 0.09 times the sampling frequency. the general form of a sampled sinusoid looks like x(i) = sin 27 jo" + e, where like x(t) = sin is the desired analog frequency and f is the f. sampling frequency. since the desired frequencies are specified as fractions of the sampling frequency, the following matlab code will accomplish generating 200 points of this test signal. be sure you understand how this code works. n=0: 1: 199; xl=sin(2*pi*n*0.02); x2=sin(2*pi*n*0.09); x=x1+x2; examine the two signals individually to convince yourself they are correct, then create a plot of the overall test signal using either plot or stem. when you look at the two signals, you should see about 50 points per period of the lower frequency sampled sinusoid and about 11 points per period of the higher frequency sampled sinusoid. note: if you want to hear what this test signal sounds like, try generating about 20,000 points and then use soundsc(x) to listen to it.

answer
Answers: 3

Similar questions

Do you know the correct answer?
Sampling rate conversion rate changing is accomplished with a combination of upsampling (interpolati...

Questions in other subjects:

Konu
History, 01.07.2019 16:00
Konu
History, 01.07.2019 16:00