I'll explain myself better, just in case. Basically what I'm doing is comparing two sets of data. Data A: x1, y1 Data B: x2 , y2
These sets should fit theoretically:
yA=m+n*x1 for the first data set
yB=factor*(m+n*x2) for the second.
In this case factor=0.992 (in theory)
What I want to test/know is: if the two linear regressions I get using fitlm (one for each set) are statistically significantly different or in other words, if I could say that the change I made in the motor affected the original curve (data set A). To sum up:
what I want is to compare two linear regressions obtained using two sets of data (vectors x1, y1 and vectors X2 U2) (one for each regression) in order to know if the difference between regressions is statistically significant.