How to perform a left shift of discrete signals via convolution operation in python?
A left shift of t0 in a signal can be obtained by convolving it with δ(t+t0). I want to obtain this in python using discrete signals by only using the np.convolve
operator in mode='full'
. Note that I can’t use np.roll
or assignment from an index like [shift:]
. It has to be obtained purely by convolution. Here’s an example: