Question

The impulse response of a discrete time system is given by h(n) 1-121 To such a system apply an input of the type we x(n) [2

0 0
Add a comment Improve this question Transcribed image text
Answer #1

Ans)

Assuming that for the given responses underlined element has '0' index i.e for

h[n]=[1 -1 2] index is nh=[-2 -1 0]

x[n]=[2 1 2 3] index is nx=[ -3 -2 -1 0]

the matlab code is

%==================code=============

% [y,ny] = convolution result

% [x,nx] = first signal

% [h,nh] = second signal

%

h=[1 -1 2]; nh=[-2 -1 0];

x=[2 1 2 3]; nx=[-3 -2 -1 0];

nyb = nx(1)+nh(1); nye = nx(length(x)) + nh(length(h));

ny = [nyb:nye]

y = conv(x,h)

%================================

Run Section Aa Normal DI Go To Control B IUM Tex Run and Advance fRefactor Step Stop Find Code Section Break Run Run to End N

the convolution output is

y[n]=[2 -1 5 3 1 6] index  n=[-5 -4 -3 -2 -1 0]

Add a comment
Know the answer?
Add Answer to:
The impulse response of a discrete time system is given by h(n) 1-121 To such a system apply an input of the type we x(...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
Active Questions
ADVERTISEMENT