Phase between two waveforms
古いコメントを表示
I'm trying to figure out the phase difference between two waveforms I downloaded from an oscilloscope. They are 1X2500 matricies. Here's the code I'm using (w1 and w2 are two waveforms I got from the oscilloscope with the getWaveform command)
CosTheta = dot(w1,w2)/(norm(w1)*norm(w2));
ThetaInDegrees = acosd(CosTheta)
This only gives me the absolute value of the phase. I don't know if it's negative or positive. How could I get this answer?
Thanks!
1 件のコメント
John BG
2016 年 7 月 14 日
is it possible for you to show the signals?
採用された回答
その他の回答 (0 件)
カテゴリ
ヘルプ センター および File Exchange で Continuous Waveforms についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!