MATLAB: Least square value of x and y values of a fitted model

curve fittingerrorregressionstatistics

I'm attempting to determine the R-squared value of a fitted model compared to experimental data using the vertical and horizontal error values. I can only find methods for the vertical value, ANY help would be greatly appreciated. The horizontal value is proving especially difficult.

Best Answer

These are known as errors-in-variables models, http://en.wikipedia.org/wiki/Errors-in-variables_models. I am not personally familiar with the techniques here. You might find some information in this old thread: