R code for the gain control based model of Weber discriminations.<div><br></div><div>The model results are presented in the discussion of Endress & Szabó (in press). Sequential presentation protects memory from catastrophic interference. <i>Cognitive Science</i>.</div>