MATLAB: Best fit line for scatter data along axis of the data, not along x

curve fittingregressionscatter

I have a set of points that I want to fit a least squares line through that follows the natural axis of the data rather than assuming it's a function of a dependent variable. I would appreciate any suggestions.

Best Answer

  • deming regression or total least squares