Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Given the following discrete-time functions x[n] and h[n]: 8[n+ 1] 28[n] +38[n 1]-48[n- 2] + 28[n-4] + 8[n-5] h[n] = 38[n] -28[n 1] +

 

Given the following discrete-time functions x[n] and h[n]: 8[n+ 1] 28[n] +38[n 1]-48[n- 2] + 28[n-4] + 8[n-5] h[n] = 38[n] -28[n 1] + 8[n-2] -28[n-3] + 8[n- 4]-48[n-6] +38[n-8] Use MATLAB to complete the following and provide MATLAB code for each task: Task 1 (10 points each): A. Express x[n] and h[n] as matrices. B. Find the length of x[n] and length of h[n]. x[n] = V C. What do you expect the length of the convolution of x[n] and h[n] to be? D. Manually (analytically) calculate y[n] = x[n] *h[n] using any of the preferred methods. Task 2 (20 points each): A. Write MATLAB code to find the convolution y[n] of x[n] and h[n] without using the built-in conv(x.h) function. (Tip: You will need to use nested (for loops) to accomplish this task.) B. Plot y[n], x[n], and h[n] in a single window using the subplot command. Your plots should have the proper horizontal axis definition for each function. For example, when plotting x[n], use the stem function as follows: stem([-1:5], x) since the domain of x[n] starts from-1 and ends at +5. C. Verify your results by the conv(x.h) command and plot the result. Compare it to your analytical solution in ID and your results in 2B.

Step by Step Solution

3.44 Rating (160 Votes )

There are 3 Steps involved in it

Step: 1

A Express xn and hn as matrices xn 8n128n 38n148n2 28n48n5 x n 8 28 38 48 28 8 0 0 0 0 hn 38n28n15n228n35n448n6 38n8 hn 38 28 5 28 5 48 0 0 38 0 0 B F... blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Basic Marketing A Marketing Strategy Planning Approach

Authors: William D. Perreault Jr., Joseph P. Cannon, E. Jerome McCarthy

19th edition

78028981, 978-0078028984

More Books

Students also viewed these Electrical Engineering questions

Question

Does log 81 (2401) = log 3 (7)? Verify the claim algebraically.

Answered: 1 week ago

Question

Inattentional blindness is a product of our _______ attention.

Answered: 1 week ago