MATLAB: Pahse Shift as a Function of Height

heightphase shiftsignal processing

Hi,
In the attached file "Signal" I have three (3) columns of signals. The first column is height, second column and the third column are the two signals.
Please how can I calculate the Phase Shift between signal one (second column) and signal two (third column)as a function of height?.
The dt is 0.02 km. the data ranges from 20 to 40 km.

Best Answer

Well, if you already have a phase shift, that's something else entirely...carrying on from above
phasedata=importdata('Schmidt_Fluctuation1_1.txt');
plot(phasedata,linspace(min(signal(:,1)),max(signal(:,1)),size(phasedata,1)))
xlim([-6 6])
legend("1&2","1&3","2&3")
yields
which presumes the data are in the order of min:max in the second array; otherwise reverse the y vector.
Related Question