These are the demonstration codes of some similar zonal reconstruction methods with least squares in MATLAB. Here we want to highlight the spline based least squares integration method for its application in two-dimensional shape or wavefront reconstruction.
Reference:
L. Huang, J. Xue, B. Gao, C. Zuo, and M. Idir, "Spline based least squares integration for two-dimensional shape or wavefront reconstruction," Optics and Lasers in Engineering 91, 221-226 (2017).