Question: Please do Part 2 ONLY, by using Matlab code h0[n] h1[n] x[n] y[n] h2[n] h3[n] Fig. 1. An efficient structure for upsampling process xat) x[n]
![Please do Part 2 ONLY, by using Matlab code h0[n] h1[n] x[n]](https://dsd5zvtm8ll6.cloudfront.net/si.experts.images/questions/2024/09/66fa2c124ef2c_31366fa2c11dee4f.jpg)
![y[n] h2[n] h3[n] Fig. 1. An efficient structure for upsampling process xat)](https://dsd5zvtm8ll6.cloudfront.net/si.experts.images/questions/2024/09/66fa2c12e2fcb_31466fa2c1283ad6.jpg)
Please do Part 2 ONLY, by using Matlab code
h0[n] h1[n] x[n] y[n] h2[n] h3[n] Fig. 1. An efficient structure for upsampling process xat) x[n] z[n] h[n] y[n] 4 gain 4 Fig. 2. Traditional structure for upsampling process 1. Generate a sampled sequence, x[n] To begin with, let's generate the discrete signal having frequencies, f= [30 70 110 150 190 350] Hz. Note that Ts = 0.0002 and n=n=0:1:200; x[n] = x, (nt,)=3* sin(27f21) It=nt, k=1 Write codes to obtain the above x[n] at this step. On a Figure, draw the x[n] and the magnitude-spectrum of x[n]. It can be obtained by the built-in function, "freqz. (For example, you can use "freqz like this: [Hy wx] = freqz(x,1,512, 'whole');) 2. Obtain the upsampled signal, z[n], in Fig. 2. In this step, write codes to implement upsampler with M=4 using the structure in Fig. 2, which is already done in your lab. The upsampling means in time domain that M-1 zeros are plugged in between two sample points (Hint: if you use zeros function, it can be implemented easily.). Draw the z[n] and the magnitude-spectrums of z[n]. Make sure from the Figure that the results are same with your expectation. h0[n] h1[n] x[n] y[n] h2[n] h3[n] Fig. 1. An efficient structure for upsampling process xat) x[n] z[n] h[n] y[n] 4 gain 4 Fig. 2. Traditional structure for upsampling process 1. Generate a sampled sequence, x[n] To begin with, let's generate the discrete signal having frequencies, f= [30 70 110 150 190 350] Hz. Note that Ts = 0.0002 and n=n=0:1:200; x[n] = x, (nt,)=3* sin(27f21) It=nt, k=1 Write codes to obtain the above x[n] at this step. On a Figure, draw the x[n] and the magnitude-spectrum of x[n]. It can be obtained by the built-in function, "freqz. (For example, you can use "freqz like this: [Hy wx] = freqz(x,1,512, 'whole');) 2. Obtain the upsampled signal, z[n], in Fig. 2. In this step, write codes to implement upsampler with M=4 using the structure in Fig. 2, which is already done in your lab. The upsampling means in time domain that M-1 zeros are plugged in between two sample points (Hint: if you use zeros function, it can be implemented easily.). Draw the z[n] and the magnitude-spectrums of z[n]. Make sure from the Figure that the results are same with your expectation
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
