Code used in:
A. Rokem and M.A. Silver (2009) A model of encoding and decoding in V1 and MT accounts accounts for motion perception anisotropies in the human visual system. Brain Research 1299: 3-16. pdf
If you find it useful in your own research, please cite the original publication.