Question

Please provide MATLAB code and plot, about system response. Will thumbs up. Thanks.Question 1: MATLAB contains a built-in function called conv which performs the convolution of two vectors: >> help conv conv

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

MATLAB CODE

x=input('Enter x');
h=input('Enter h');
Y=conv(x,h);% convoltion of x and h
figure()
subplot(2,2,1) % to create 4 by 4 grid
stem(x); % for plotting
title('Plot of x[n]')
xlabel('n');
ylabel('x');
subplot(2,2,3)
stem(h);
title('Plot of h[n]')
xlabel('n');
ylabel('h(n)');
subplot(2,2,4)
stem(y);
title('Convolution of x and h')
xlabel('n');
ylabel('y(n)');
disp(y);

Untitled2.mx x-input (Enter x) h=input ( Enter h ) ; Y=conv(x, h);% convoltion of x and h figure () subplot (2,2,1) % to c

Command Window New to MATLAB? Watch this Video, see Examples, or read Getting Started. Enter x[o1 l 1 0 0 0 0 0 01 Enter hll

Figure 2 File Edit View Insert Tools Desktop Window Help Plot of x[n] 0.5 10 Plot of h[n] Convolution of x and h 4 1 1.5 2 2.

Add a comment
Know the answer?
Add Answer to:
Please provide MATLAB code and plot, about system response. Will thumbs up. Thanks. Question 1: MATLAB contains a built-...
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
  • please write code in MATLAB as well 5. (12 points) Create the following signal in Matlab:...

    please write code in MATLAB as well 5. (12 points) Create the following signal in Matlab: x[n] = u(n) - u[n-6] a. Mathematically compute yi[n] = x[n] * x[n] where * means convolution. Now use the conv command to perform the convolution. Graph x[n) and the resulting y(n), both over the interval Osns 20. How many non-zero terms does y(n) have? Does your computational result agree with the Matlab result? b. Repeat a. but this time with yz[n] = x[n]*h[n)...

  • using matlab thanks A Share Sgn in eHome Insert Design Leyout References Man Batch 1 Midterm Practical x(n)-1 3 ura) + u(n-18); for n:0 to 79 h(n)- 2un-15); for n-0 to 79 Without using the functio...

    using matlab thanks A Share Sgn in eHome Insert Design Leyout References Man Batch 1 Midterm Practical x(n)-1 3 ura) + u(n-18); for n:0 to 79 h(n)- 2un-15); for n-0 to 79 Without using the function "conv", plot the convolution response of the given discrete-time signals xin),input signal and hn), impulse response use subplot to present these signals and the output. Submit your work/compilation in Canvas feuinstructure.com zooM+ of 5 Convolution n)hn-k). for -012 1-0 Where M-N-N-1 Nlength of sequenceI...

  • (42)1+ (z-0.5)z-0.9)(z-0.8) 3. The transfer function of a system is H(z) = a) Compute an analytical expression for the...

    (42)1+ (z-0.5)z-0.9)(z-0.8) 3. The transfer function of a system is H(z) = a) Compute an analytical expression for the response y[n] if x[n] = u[n]. . Use Matlab to calculate the coefficients b) Simulate the response using Matlab (stem plot). Generate 50 points. (enter transfer function into Matlab and apply step input) (42)1+ (z-0.5)z-0.9)(z-0.8) 3. The transfer function of a system is H(z) = a) Compute an analytical expression for the response y[n] if x[n] = u[n]. . Use Matlab...

  • I need help with this MATLAB exercise. The given system is y[n] - (3/10)y[n-1] - (1/10)y[n-2]...

    I need help with this MATLAB exercise. The given system is y[n] - (3/10)y[n-1] - (1/10)y[n-2] = 2x[n] The input x[n] is 2cos(2*pi*n/6)(u[n] - u[n-10]) Don't have to answer part 2 of the question. Zero-state response of a system can be found by using convolution of the input signal and unit impulse response: Use conv command from MATLAB to compute the zero-state response of the system defined in part B to the input x[n] in part C. 1. 2. 3....

  • CONVOLUTION - Questions 4 and 5 4. Consider an LTI system with an impulse response h(n)...

    CONVOLUTION - Questions 4 and 5 4. Consider an LTI system with an impulse response h(n) = [1 2 1] for 0 <n<2. If the input to the system is x(n) = u(n)-un-2) where u(n) is the unit-step, calculate the output of the system y(n) analytically. Check your answer using the "conv" function in MATLAB. 5. Consider an LTI system with an impulse response h(n) = u(n) where u(n) is the unit-step. (a) If the input to the system is...

  • Use Matlab to solve. i) Declare a vector of length 256 samples. The first 100 samples...

    Use Matlab to solve. i) Declare a vector of length 256 samples. The first 100 samples is 1 and the next 146 samples are zero. This will be our low pass filter (10 points) ii) Use MATLAB's ifft function to compute the inverse transform of the filter you designed in 1 (i). This will be the impulse response of our filter (5 points) Define a DT signal x[n] = 3 cosen is provided as input the filter. Plot i Use...

  • for the plot, provide the matlab code. 3. Let the input signal x[n] (defined for -<n...

    for the plot, provide the matlab code. 3. Let the input signal x[n] (defined for -<n < oo) to the system be x[n] = 3 cos( 0.05πn) + 4 cos( 0.45πn) + cos( 0.95 n) and the transfer function be 1-re-je a) Plot this signal as a function of n. b) Determine and plot the output y[n] produced by the system due to the input analyzed in part a) of this problem. Do this first with r 0.05 and then...

  • 1. Runge's function is written as f(x) = 1 25r2 (a) Develop a plot of this function for the inter...

    1. Runge's function is written as f(x) = 1 25r2 (a) Develop a plot of this function for the interval from x =-1 to 1 using Matlab (no submission required). Develop the fourth-order Lagrange interpolating polynomial using equispaced function values corresponding to xi =-1,-0.5, 0, 0.5, and 1. (Note that you first need to determine the (a. ) pairs.) Use the polynomial to estimate f(0.9). (b) What is et? (c) Generate a cubic spline using the five data points from...

  • A causal discrete-time system is described by the following difference equation: Use Matlab to write a...

    A causal discrete-time system is described by the following difference equation: Use Matlab to write a script to complete the following tasks. Turn in the output created by the Matlab "publish" utility. (a) Compute and plot the impulse response h[n], 0くn 〈 50. Use the function h=imp2(b, a , N ) to find the impulse response, and use the stem ) function to create the plot. (b) Let x[n] be defined by (n - 15)2 0n K 30 x[n] elsewhere...

  • solve using MatLab please. HW - 1 Use a cover page Word file attached for the...

    solve using MatLab please. HW - 1 Use a cover page Word file attached for the homework solution. Solve all questions using Word and the Matlab output should be copied into the Word file. All questions and answers should be numbered HW1.1 Generate the following sequences using the basic MATLAB signal functions and the basic MATLAB signal operations discussed in this chapter. Plot signal samples using the stem function. 1- x(n) = n°[u(n+5] – u(n-6) + 105(n) + 20(0.5)* [u(n-4)...

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
ADVERTISEMENT