How to find the difference of 1st minima point of 2 shifted cosine/sine wave in matlab?

조회 수: 1 (최근 30일)
I would like to ask if there is a way to get the 1st minima point of 2 cosine wave (one shifted to the right) and evaluate the difference in the x-axis (which is also the time-axis)?
  댓글 수: 1
William
William 2013년 3월 6일
Not sure is it my questions are unclear, but what I would like to ask is how to find the phase shift of the 2 similar graphs example as above...
Hope someone will be able to help me soon.. :)

댓글을 달려면 로그인하십시오.

채택된 답변

ToLos Mil
ToLos Mil 2013년 3월 6일
편집: ToLos Mil 2013년 3월 6일
Considering that you have 2 vectors cos1 and cos2 (of the same frequency) you can calculate their phase difference in rad using the formula:
acos(dot(cos1,cos2)/(norm(cos1)*norm(cos2)))
  댓글 수: 1
William
William 2013년 3월 6일
Thanks a lot apostolos! However, I have currently more troubled and sticky question in another thread... the topic is "how to determine each local min point?" I have a sample coding which i have generated in a simplified version but this time, the angle is a variation of x... do take a look and hope to hear from anyone for urgent solutions... :)
once again, thanks!

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 2-D and 3-D Plots에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by