a = (1000,1)
b = (1000,1)
c = (1000,1)
diff = (1000,1)
a and b should have similar values (i.e. profiles) to each other but there is a difference (diff). Variable a needs to be corrected ( calibrated) so that the profile looks more similar to b (as b = true values). It seems the difference in the top 100 rows are related to variable c.
I have the equation of a straight line by using polyfit and polyval, but I'm not sure now how best to proceed. I wondered if anyone knows a great function / set of functions to use to calibrate variable a using var b, c, and diff?
As well as this, It would be nice to obtain the 95% and 99% confidence levels, residuals, errors (e.g. residual standard error), and standard deviations, of both the prediction and regression lines.
Currently using MATLAB R2014b