how can use discrete convolution to find the response?

hi all I am beginner in signal processing. how can I solve below question? thanks

Answers (1)

Try this:
x = [0, 0, 1, 0, 0]
h = [0, 2, 1, 0, 0]
output = conv(x, h, 'full')

2 Comments

thanks. is 'stem(x)' good for plotting this?
Yes, you could do that, or plot() or bar() - whatever you want.

Sign in to comment.

Asked:

on 31 Mar 2016

Commented:

on 1 Apr 2016

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!