**matlab 59** v=[1;-1;j];plot(filter(0.5,[1,-0.5],v(randi(3,1,1e4))),'.') ![enter image description here][1] [1]: https://i.sstatic.net/bNN0r.png