Consider the measurements of two modulated AC signals (voltage and current) which may have noise, harmonics and a DC bias. Each measured signal consists of a list for the time and a list for the corresponding values.
My goal is to find out the phase shift in degrees between these two signals in a robust way.
I would like to realize this in the frequency domain perhaps by calculating and evaluating the fundamental waves of the signals.
Any help or sample code (MATLAB) would be very much appreciated.