Writing a matlab program to computer


Assignment:

x(n)=(1,2,3,4,5,6,7,8,9,10)
h(n)=(1,1,-1,3,2)

Write a matlab program to computer y(n)=h(n)*h(n) (convolution) without using the matlab convolution function 'conv'. That is, write matlab code to computer the convolution sum (... using nested loops?). Then use conv(h,x) to check the work.

Plot h, x, and y using the plot function.

Solution Preview :

Prepared by a verified Expert
MATLAB Programming: Writing a matlab program to computer
Reference No:- TGS01896691

Now Priced at $30 (50% Discount)

Recommended (99%)

Rated (4.3/5)