A Matlab toolbox for the analysis of refractive results in anterior segment surgery

Contact the author


Have you used Refractive Analysis Toolbox in your research paper? Cite in the statistical analysis section replacing v.x.x.x. for the version used:

  • Rodríguez-Vallejo M (2017). Refractive Analysis v.x.x.x. A Matlab toolbox for the analysis of refractive results in anterior segment surgery. Retrieved from


Refractive Analysis is a Toolbox for MATLAB in order to conduct common operations related to anterior segment surgery or graphical representations according to the standards of peer review journals.



Astigmatism analysis is based on vector arithmetic. The current standard method in Ophthalmology practice is the Alpins method1 whereas in Optometry practice is more common to use the Thibos method.2 In the practice, both methods result in similar outputs.


The efficacy of a procedure is marked by Postoperative Visual Acuity WITHOUT Correction compared to preoperative WITH correction in a laser refractive surgery procedures3 whereas in cataract surgery4 Efficacy is reported as a function of the comparison of postoperative visual acuities with and without correction.


The predictability of the procedure describes the accuracy for obtaining the target spherical equivalent refraction.


This graph is required for all studies to show the distribution of manifest refractive cylinder before and after surgery. However, because of the unreliability of the preoperative manifest refraction in the presence of a cataract, only the postoperative data are necessary for a cataract population.

  1. Alpins NA. A new method of analyzing vectors for changes in astigmatism. J. Cataract Refract. Surg. 1993; 19: 524–33. 2.
  2. Thibos LN, Wheeler W, Horner D. Power vectors: an application of Fourier analysis to the description and statistical analysis of refractive error. Optom Vis Sci. 1997; 74: 367–75.
  3. Reinstein DZ, Archer TJ, Randleman JB. JRS Standard for Reporting Astigmatism Outcomes of Refractive Surgery. J Refract Surg. 2014; 30: 654–9.
  4. Reinstein DZ, Archer TJ, Srinivasan S, et al. Standard for Reporting Refractive Outcomes of Intraocular Lens–Based Refractive Surgery. J Refract Surg. 2017; 33: 218–22.


Version 1.0.0
    • Astigmatism analysis inclusion.
    • Function "meanA" added.
    • Function "doublePlot" added.
    • Efficacy inclusion for cataract and laser refractive surgery.
    • Function "cumulativeVA" added.
    • Function "differenceVA" added.
    • Function "spheEquiv" added.
    • Function "postCylinder" added.