Convolving a signal with its impulse response in MATLAB

Click For Summary
SUMMARY

The discussion centers on convolving a discrete signal, defined as x[k] = u[k] - u[k-8], with its impulse response h[k] = sin(pi*k/4) * (u[k] - u[k-8]) using MATLAB. Participants express difficulty in implementing this convolution in MATLAB, despite believing it to be straightforward. They suggest that h[k] should be defined as h[k] = sin(pi*k/4) * x[k], indicating confusion about the correct formulation. The need for clarity on the u[k] function and its implications is highlighted.

PREREQUISITES
  • Understanding of discrete signals and systems
  • Familiarity with MATLAB syntax and functions
  • Knowledge of convolution operations in signal processing
  • Basic understanding of unit step functions, specifically u[k]
NEXT STEPS
  • Research MATLAB's 'conv' function for performing convolution
  • Study the implementation of unit step functions in MATLAB
  • Explore the concept of impulse response in discrete-time systems
  • Learn about the properties of convolution in signal processing
USEFUL FOR

This discussion is beneficial for students in signal processing courses, MATLAB users seeking to understand convolution, and anyone working with discrete-time signals and systems.

physmatics
Messages
16
Reaction score
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! :)
 
Physics news on Phys.org


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

Similar threads

  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 17 ·
Replies
17
Views
6K
Replies
2
Views
2K
Replies
2
Views
5K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 2 ·
Replies
2
Views
3K
  • · Replies 2 ·
Replies
2
Views
2K