% error: w = triang (n) % % Returns the filter coefficients of a triangular window of length n. % Unlike the bartlett window, triang does not go to zero at the edges % of the window. For odd n, triang(n) is equal to bartlett(n+2) except % for the zeros at the edges of the window.