[S1,F1,T1] = spectrogram(data(2,:),hanning(1024),216,[],Fs);
[S2,F2,T2] = spectrogram(data(3,:),hanning(1024),216,[],Fs);
subplot(3,1,1)
pcolor(T1,F1,log10(abs(S1))),shading flat
subplot(3,1,2)
pcolor(T2,F2,log10(abs(S2))),shading flat
subplot(3,1,2)
pcolor(T1,F1,angle(S1.*conj(S2))),shading flat
2 Comments
Direct link to this comment
https://se.mathworks.com/matlabcentral/answers/556330-how-to-find-peaks-of-the-given-signal-and-find-the-phase-shift-with-respect-to-the-oscillator-1-sign#comment_917083
Direct link to this comment
https://se.mathworks.com/matlabcentral/answers/556330-how-to-find-peaks-of-the-given-signal-and-find-the-phase-shift-with-respect-to-the-oscillator-1-sign#comment_917083
Direct link to this comment
https://se.mathworks.com/matlabcentral/answers/556330-how-to-find-peaks-of-the-given-signal-and-find-the-phase-shift-with-respect-to-the-oscillator-1-sign#comment_917086
Direct link to this comment
https://se.mathworks.com/matlabcentral/answers/556330-how-to-find-peaks-of-the-given-signal-and-find-the-phase-shift-with-respect-to-the-oscillator-1-sign#comment_917086
Sign in to comment.