Calculating Phase difference from workspace data

Hi,
As you can see from the diagram below, I have generated two wave functions from the workspace data and now I am interested in calculating/obtaining the phase difference between the two. Is there any efficient way of doing it in MATLAB or some mathematical formulation that I might be able to use?
FYI: My aim is to plot the bode plot eventually from different sets of data, let's say for an unknown system.

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Get Started with Control System Toolbox에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by