1. Limited time only! Sign up for a free 30min personal tutor trial with Chegg Tutors
    Dismiss Notice
Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

Homework Help: Convolving a signal with its impulse response in MATLAB

  1. Sep 23, 2012 #1
    1. The problem statement, all variables and given/known data

    We're supposed to convolve the signal

    x[k] = u[k] - u[k-8]

    with its impulse response

    h[k] = sin(pi*k/4)*( u[k] - u[k-8] )

    with the help of MATLAB.

    2. Relevant equations

    3. The attempt at a solution
    The thing is that we don't know how to do this in MATLAB. We think it's something really easy, but we just can't figure it out. We've been trying to find information on Internet, but nothing comes up! Also, we're pretty sure that we're supposed to put

    h[k] = sin(pi*k/4) * x[k]

    - it's pretty obvious from the exercise :)

    Can anyone help us? We will appreciate it! :)
  2. jcsd
  3. Sep 24, 2012 #2
    Re: Convolving a signal with its impulse respons in MATLAB

    Did you look up the u[k] function, and implications of it?
Share this great discussion with others via Reddit, Google+, Twitter, or Facebook