Syntax: linfit(y data, x data)
'y data' - y-axis data (dependent)
'x data' - x-axis data (independent)
The two inputs must have the same dimensions.
The data are fit to the function y = a*x + b
All data are grouped together (into the same fit), so the sizes of the arrays don't matter.
The returned quantities, in order:
First row is y-intercept and slope
Second row is uncertainty of y-intercept and uncertainty of slope, as determined by Higbie 1990 (see http://dx.doi.org/10.1119/1.16607)
Third row is correlation coefficient (R), and standard error in y
If linfit() is entered with no arguments, it prints its description, as shown below.