from Orthogonal Linear Regression by Per Sundqvist
Fits a line y=p0+p1*y to a dataset (xdata,ydata) in an orthogonal way.

All files for Orthogonal Linear Regression
/linortfit.m

Contact us at files@mathworks.com