A couple of years on, and I wanted to post the current working version of the staircase code from a previous blog post. These changes have added tracking of the current threshold estimate from reversals. I have also fixed a bug that would prevent the staircase recording data if it was given an invalid starting value (now it simply finds the nearest valid value).
Update: 2nd July 2019
It is now also citeable: Alex S Baldwin. (2019, July 2). alexsbaldwin/MatlabStaircase: v0.9.0 (Version v0.9.0). Zenodo. http://doi.org/10.5281/zenodo.3266142