View the step-by-step solution to:

Question

# please create a Matlab code for both 3 and 4 ATTACHMENT PREVIEW Download attachment Screen Shot 2019-10-01 at 5.08.20 PM.png 3. Create a four rows subplot figure according to the following. Use a range on n from -10 to 20. Also, for plotting use stem. A. Represent (using @) the discrete time signal x[n] = exp &quot;) cos(&quot;,&quot;) u[n], and show the plot (using stem) . B. Plot the decimation (down-sampling) of x[n] for M=2 which is xan]. C. Plot the expansion (up-sampling) of x[n] for L=2 which is xe[n]. D. Plot the linear interpolating (up-sampling) of x[n] for L=2 which is x, [n] . 4. For problem (3), also consider a continuous time version of the same signal f(t) = exp (-) cos ( )ult]. Show the difference between the fe(t) = f (;) and x [n] above. Use the (plot) command here instead of the (stem) command for f.(t), and use stem for fin]. Use t = -10:0. 01 :40 and n=-10:40.

### Why Join Course Hero?

Course Hero has all the homework and study help you need to succeed! We’ve got course-specific notes, study guides, and practice tests along with expert tutors.

• ### -

Study Documents

Find the best study resources around, tagged to your specific courses. Share your own to gain free Course Hero access.

Browse Documents