I\'m trying to do this:
h = [0.2,0.2,0.2,0.2,0.2] Y = np.convolve(Y, h, \"same\")
Y looks like this:
Y
np.convolve() takes one dimension array. You need to check the input and convert it into 1D.
np.convolve()
You can use the np.ravel(), to convert the array to one dimension.
np.ravel()