what is the type of filter that has values ones?
This, on its own, would perform a summation operation of L elements of your input. If you modified it to p = ones(1,L)./L, then it would become a moving average (or in other words a low-pass) filter.

For more information please see this and this link.

Hope this helps