How to shift a signal on the $y$-axis to match another signal in MATLAB
Matlab's polyfit function can be used to do linear regression. This can be used to find a linear relationship (offset and gain) that maps one dataset to the other.