i have an assignment due in one days where i have to calculate and plot the convolution of the two sets given in the assignment. Use the function conv() and calculate the convolution between the two sets.
X2(t)= [0 1 2 3 2 1]
H2(t)= [1 1 1 1 1 1]
  1. write x(t)and y(t) in MATLAB array forms
  2. Calculate y2(t)= x2(t) x(with a circle around it) h2(t) by MATLAB function conv()
  3. Determine the length of y2(t) by a MATLAB function (size() and length())
  4. represent the figure of x2(t), h2(t) and y2(t) on the same graph using the subplot function.

Réponses (1)

Ameer Hamza
Ameer Hamza le 18 Avr 2020

0 votes

This assignment is quite simple. You are allowed to use built-in functions conv(). Since it is an assignment so, I cannot give you code, but I can point you to the necessary resources to complete this assignment
Just piece them together and the assigment will can be easily completed.

5 commentaires

mohammed abdulhusein
mohammed abdulhusein le 18 Avr 2020
Hey thanks for your response, I have actually read all those but been unable to put it all together. Would really appreciate it if you could put together the code for me. Thanks
Image Analyst
Image Analyst le 18 Avr 2020
Do you mean that you want Ameer to do your homework for you so that you can turn his work in as your own? And possibly risk getting into trouble with your instructor?
mohammed abdulhusein
mohammed abdulhusein le 18 Avr 2020
Help if you can. There's no trouble, my prof won't care, I'll make the necessary changes.
Ameer Hamza
Ameer Hamza le 18 Avr 2020
That is not the point. The assignment was given for your learning. Giving a complete code would kill that purpose.
mohammed abdulhusein
mohammed abdulhusein le 18 Avr 2020
I'll learn from the code I have tried all I could but wasn't able to get it going.

Connectez-vous pour commenter.

Catégories

En savoir plus sur Environment and Settings dans Centre d'aide et File Exchange

Produits

Community Treasure Hunt

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

Start Hunting!

Translated by