>> x=[0, ones(1,6)]/6 x = 0 0.1667 0.1667 0.1667 0.1667 0.1667 0.1667 >> conv(x,x) ans = 0 0 0.0278 0.0556 0.0833 0.1111 0.1389 0.1667 0.1389 0.1111 0.0833 0.0556 0.0278 >> last=x;for i=1:99, last=conv(x,last);end ; >> last(350) ans = 0.0233 >> stem([0:600],last) >> >> help conv CONV Convolution and polynomial multiplication. C = CONV(A, B) convolves vectors A and B. The resulting vector is length LENGTH(A)+LENGTH(B)-1. If A and B are vectors of polynomial coefficients, convolving them is equivalent to multiplying the two polynomials. See also DECONV, CONV2, CONVN, FILTER and, in the Signal Processing Toolbox, XCORR, CONVMTX. Overloaded methods help gf/conv.m >>