
--------------
%matlab
x=[3 11 7 0 -1 4 2];
h=[2 3 0 -5 2 1];
y=conv(x,h);
disp('convolution sequence of x,h, is');
disp(num2str(y));
n=-4:7;
stem(n,y);
xlabel('n');
ylabel('y[n]=x[n]* y[n]');
----------------------
>> m1
convolution sequence of x,h, is
6 31 47 6 -51 -5 41 18 -22 -3 8 2
>> xlabel
----------------------
![y[n]=x[n]* y[n]](http://img.homeworklib.com/questions/829f6460-c270-11eb-bf8f-4fd79b6f5559.png?x-oss-process=image/resize,w_560)
3. Given the following two sequences x(n) = [3, 11, 7,0, – 1,4, 2], – 3...
Given the following two sequences x (n)=[3 , 11,7 ,0 ,−1, 4 ,2 ],−3≤n≤ 3 ; h (n )=[2,3 ,0 ,−5, 2,1 ] ,−1≤n≤ 4. (a) Use the deiniion to determine the convoluion y ( n )= x ( n )∗h (n ) (b) Compare your result in (a) with that obtained by MATLAB
em 2: Given two sequences x[n] = 8 8[n - 8] and h[n] = (0.7)"u[n] Determine the z-transform of the convolution of the two sequences using the convolution property of the Z-transform Y(z) = X(z) H(2) Determine the convolution y[n] = x[n] * h[n] by using the inverse z-transform Problem 3: Find the inverse z-transform for the functions below. 4z-1 2-4 z-8 X(Z) = + 2-5 Z - 1 2-05 X(Z) = Z 2z2 + 2.7 z + 2
1. An LTI system has impulse response defined by h (n )={2 ,2 ,−1,−1 ,−1,−1}first 2 zero . Determine the outputs when the input x(n) is (a) u(n ) ; (b) u(n−4 ) 2. Let the rectangle pulse x ( n )=u ( n ) −u (n −10 ) be an input to an LTI system with impulse response h (n )=(0.9 )n u (n ) . Determine the output y ( n ) . (Hint: You need to consider muliple...
2- make two finite length real valued sequences, call them x[n] and y[n], such that each have 5 samples (not all zeros or the same values), then using convolution sum principal determine: a- correlation sequence of x vs. y b-correlation sequence of y vs. x compare/contrast the results. Note also you are to do part a and b by hand (use tabulation method) and then Matlab to verify your hand calculations
6. Given the two four-point sequences x[n] = (-2,-1,0, 2] and y[n] = [-1, -2, -1, -3), find the following: (a) x[n]*y[n], the linear convolution; (b) x[n]y[n], the circular convolution;
1. Write a Matlab function to convolve two sequences objects: function y = conv(x, h) % CONV Convolve two finite-length Matlab sequence objects, x and h % returning sequence object, y. When you convolve x[n] and h[n] , you may not use MATLAB's numerical conv routine. 2. write a second convolution function, conv_rt, in Matlab that basically implements a real-time convolu- tion strategy: function y = conv_rt(x, h) % Convolve two finite-length arrays, x and h % returning array, y...
5.34. Two signals æ[n] and h[n] are given by - 3, 4, 1, 6 arn]{2, t n 0 h[n1, 1, , 0, 0} t n 0 Compute the circular convolution y[n] x[n]h[n] through direct application of the circular convolution sum a. b. Compute the 5-point transforms X k] and H[k] c. Compute Y[k] Xk] Hk, and the obtain y[n] as the inverse DFT of Y [k. Verify that the same result is obtained as in part (a)
how to calculate the convolution
Calculate the convolution of the following sequences: x[n] (n +1 )R, [n] and h = u [n-2] Answer: Note that the convolution of any sequence with u[n] is the sum of all the components (an integrator) 2. x[n]=仁1,-2-3-4) 1 vl n | =.xln|>k 11 | n | = 〈ー1, 2(00.-1,-3.-6.-10-10.
Calculate the convolution of the following sequences: x[n] (n +1 )R, [n] and h = u [n-2] Answer: Note that the convolution of any sequence...
P-8.7 Consider two finite-length sequences, x[n] 0 n<0 1 0 <n<3 n> 3 0 and h[n] = 28[n] - 8[n - 1] - 8[n - 2]. (a) Determine and plot the discrete convolution y[n] = x[n] *h[n] for these two sequences.
Q4. Consider the two sequences x [n] = [0 otherwise h[n] = {00 otherwise α>1 calculate the convolution of two signals. Q5. Consider an L'TI system with input x (o] and impulse response h (o] specified as follows. x [n] = 2"u [-n] h [n] -u [n] Find the output y [n] using convolution sum.
Q4. Consider the two sequences x [n] = [0 otherwise h[n] = {00 otherwise α>1 calculate the convolution of two signals. Q5. Consider an L'TI...