matlab convolution "same" to numpy.convolve
<p>I noticed that when I use conv(a, b, 'same') in matlab, it would return say M of length 200, but when I use numpy.convolve(a, b, 'same') it would return N of length 200, but shifted by one element compared to M (N[1:] would be the same as M[0:-1] and M[-1] would not be in N, N[0] not in M), how can I fix this?</p>

<p>I can cut off the first element of N, but is there a way I can get the last element of M without going through some hassles?</p>