phase shift for data

Hello! Is there anyone who could tell me how to count a phase shift for attached data? AO and AI - sinewaves Ts - sample time f-signal frequency t-time, so the plot can be obtained by: plot(t,AO,t,AI)

回答 (1 件)

Walter Roberson
Walter Roberson 2017 年 1 月 25 日
編集済み: Walter Roberson 2017 年 1 月 25 日

0 投票

Guessing that AO is Output and AI is Input and so AO is dependent on AI, then:
plot(t,atan2(AO-AI,AI))

2 件のコメント

izap
izap 2017 年 1 月 25 日
Ok, thanks :)
But I would like to obtain an one value of phase shift.
Walter Roberson
Walter Roberson 2017 年 1 月 25 日

サインインしてコメントする。

カテゴリ

質問済み:

2017 年 1 月 25 日

コメント済み:

2017 年 1 月 25 日

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by