measure phase of a sine wave
2 views (last 30 days)
Show older comments
I want to measure the phase of a sine wave in simulink during simulation. anybody knows how to do it?
2 Comments
Answers (2)
Walter Roberson
on 21 Dec 2016
fft() and examine angle() of the result at the bin appropriate for the frequency you are interested in.
1 Comment
Walter Roberson
on 21 Dec 2016
https://www.mathworks.com/matlabcentral/answers/106534-instantaneous-phase-angle-plots shows phase detection in Mathworks using a Hilbert transform.
https://www.mathworks.com/help/dsp/examples/envelope-detection.html#zmw57dd0e11769 shows constructing a Hilbert transform in Simulink.
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!