Convolving a signal with its impulse response in MATLAB

AI Thread Summary
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]) in MATLAB, users express confusion about the implementation. They believe the convolution process is straightforward but are struggling to find relevant information online. There's a suggestion that h[k] can be expressed as h[k] = sin(pi*k/4) * x[k]. Participants are encouraged to explore the u[k] function and its implications for better understanding. Assistance is requested to clarify the convolution process in MATLAB.
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?
 
Thread 'Have I solved this structural engineering equation correctly?'
Hi all, I have a structural engineering book from 1979. I am trying to follow it as best as I can. I have come to a formula that calculates the rotations in radians at the rigid joint that requires an iterative procedure. This equation comes in the form of: $$ x_i = \frac {Q_ih_i + Q_{i+1}h_{i+1}}{4K} + \frac {C}{K}x_{i-1} + \frac {C}{K}x_{i+1} $$ Where: ## Q ## is the horizontal storey shear ## h ## is the storey height ## K = (6G_i + C_i + C_{i+1}) ## ## G = \frac {I_g}{h} ## ## C...
Back
Top