I have 2 time domain signals collected from Terahertz Time Domain Spectroscopy (Reflection); reference and sample. I managed to find out the time delay between the two signals. And I thought by aligning the peak of two signals in time domain will correct the phase shift problem in frequency spectrum. But it does not seem to work this way. Therefore,I thought can explore the option of finding phase shift between the two signals in a particular frequency spectrum before correcting the phase shift. Can someone kindly enlighten me how to find phase shift between the two signal in the frequency spectrum and how to correct phase shift in the frequency spectrum? Really any help will be deeply appreciated.
Kshitij Singh answered .
2025-11-20
Angles2pi = @(a) rem(2*pi+a, 2*pi); % For ‘atan2’