Why my covolution is not what I expected?

1 view (last 30 days)
I try to do a convultion of a rectangular function and a function which is the sum of 4 impulse function added together, and the simulink model is as the figure follow:
I was expected my convlution something like the figure below when I made this with Matlab by using rectpuls to create the rectangular function and impulse function :
But what i got from Simulink is as follow:
Why the simulink results are different to the Matlab results?
  2 Comments
Nikhil Sonavane
Nikhil Sonavane on 19 May 2020
Can you share the Simulink model as it would be easier to examine its settings
Geoffrey Lo
Geoffrey Lo on 19 May 2020
I've uploaded the matlab code and Simulink model

Sign in to comment.

Accepted Answer

Nikhil Sonavane
Nikhil Sonavane on 21 May 2020
There are other similar MATLAB Answers which have the solution for your problem. You may refer to them for further details-

More Answers (0)

Products

Community Treasure Hunt

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

Start Hunting!