Matlab codes for the paper 'Some Properties  of the Transition Matrix in Econometric Learning with Bounded Memory'