Convolving a signal with its impulse response in MATLAB

  • Thread starter physmatics
  • Start date
  • #1
physmatics
16
0

Homework Statement



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.


Homework Equations


-

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! :)
 

Answers and Replies

  • #2
liquidFuzz
87
1


Did you look up the u[k] function, and implications of it?
 

Suggested for: Convolving a signal with its impulse response in MATLAB

  • Last Post
Replies
3
Views
916
Replies
3
Views
4K
Replies
3
Views
1K
  • Last Post
Replies
3
Views
3K
Replies
1
Views
6K
Replies
4
Views
17K
Replies
1
Views
987
Replies
3
Views
2K
Replies
1
Views
1K
  • Last Post
Replies
2
Views
7K
Top