Code and data for replicating figures in Bayesian Efficient Coding manuscript by Il Memming Park and Jonathan Pillow. Requires GPML toolbox: http://www.gaussianprocess.org/gpml/code/matlab/doc/ Lightspeed is optional.