Convolution Integral Example 04 - Convolution in Matlab (2 Triangles)

Поділитися
Вставка
  • Опубліковано 2 гру 2024

КОМЕНТАРІ • 24

  • @jacobprice3079
    @jacobprice3079 3 роки тому

    You're an absolute master, my friend. Just saved me several hours of reading forums.

    • @AdamPanagos
      @AdamPanagos  3 роки тому

      Glad I could help, thanks for watching. Make sure to check out my website adampanagos.org for additional content (600+ videos) you might find helpful. Thanks, Adam

  • @malobikaroy4102
    @malobikaroy4102 7 років тому +2

    Thank you...This is really good tutorial,have been struggling with this for long ,you can explain really well.

  • @Tezu4jsrvT
    @Tezu4jsrvT 7 років тому

    your explanation is quite excellent..... really it helped me in my signals and systems lab....hoping for more videos like this on different topics in (s and s)......thank u very much adam................

  • @saras8970
    @saras8970 9 років тому

    That was greaattttt....It was just what I was looking for!!! thanks for uploading!

  • @jean.carlo27
    @jean.carlo27 6 років тому +2

    Thank you very much, you really helped me

    • @AdamPanagos
      @AdamPanagos  6 років тому

      Glad I could help, thanks for watching. Make sure to check out my website adampanagos.org for lots of additional content that you might find helpful.

  • @Wawawy1994
    @Wawawy1994 8 років тому

    You are amazing . Thanks

    • @AdamPanagos
      @AdamPanagos  8 років тому

      +Wawawy1994 Glad to help, thanks for watching!

  • @eslamattia9897
    @eslamattia9897 8 років тому

    i need a code for "discrete" convolution by building the function by your self not using the "conv" built in function , can you help?

  • @leilamaestri3359
    @leilamaestri3359 8 років тому

    Thank you!

  • @SergeyGorbikov
    @SergeyGorbikov 7 років тому

    10x a lot, fellow

  • @devil99manas
    @devil99manas 8 років тому

    In the 20th line of code, what have you entered at the beginning of the bracket? is it 'goa'?

    • @AdamPanagos
      @AdamPanagos  8 років тому

      It's "gca", which stands for "get current axis". Basically, I'm wanting to make change to the axis to make it bold, larger font, etc.

  • @jcluk3653
    @jcluk3653 8 років тому

    How does the "median(diff(t))" in line 27 make the discrete convolution become the continuous time convolution?

    • @AdamPanagos
      @AdamPanagos  8 років тому +5

      +Junchao Lu Keep in mind that Matlab (and computers in general) can ONLY work with discrete signals. Storing a continuous-time signal (even for a short amount of time) would require an infinite amount of memory since a continuum has an uncountably infinite number of points.
      So, when calling the "conv" function in Matlab, the signals passed in (such as the variable x) are always vectors of a finite length and Matlab actually performs discrete-time convolution. This is a multiplication and summation of the vectors.
      The quantity delT = median(diff(t)) is just a scalar and is essentially equal to the "delta t" of the time vector used in the problem. Multiplying by delT normalizes the summation that Matlab did inside the "conv" function to account for the sampling interval used in the problem to yield a final value that is equal to the area one would have obtained doing a real continuous-time integration.
      You can think of the multiplying and summation performed inside the "conv" function as doing a rectangle method approximation of the real integral we'd like to work. The product of the signals is the function/rectangle height, delT is the width, and the product of these two provides the rectangle area which should closely approximate the continuous-time integral/convolution.
      See the equation near the top of the following link where a continuous-time integral is approximated by h * sum. The quantity h plays the same role as our delT here.
      en.wikipedia.org/wiki/Rectangle_method
      Hope that helps!
      Adam

    • @jcluk3653
      @jcluk3653 8 років тому

      +Adam Panagos thank you! and happy Chinese New Year!:)

  • @Tezu4jsrvT
    @Tezu4jsrvT 7 років тому

    can we reduce this code adam?

  • @XuanThanh351934
    @XuanThanh351934 10 років тому

    I need learn about linear time invariant systems ( LTI ), finite impulse response ( FIR ) and IIR ( infinite impulse response ) can you help me? thank you very much

    • @AdamPanagos
      @AdamPanagos  10 років тому

      Check out and subscribe to my channel: ua-cam.com/users/agpanagos
      I have about 200 videos, many of which are related to continuous-time and discrete-time signals and systems. I also continue to add videos as I teach each semester. Hope you find something useful.

  • @youmah25
    @youmah25 10 років тому +1

    can i have the code link

    • @AdamPanagos
      @AdamPanagos  10 років тому +7

      Sure, you can download the m-file I used in this example here:
      drive.google.com/open?id=0B1ClB5V-5p_uREluSUdERkZpckk&authuser=0

    • @youmah25
      @youmah25 10 років тому

      thank you