Phase Difference Measurement with Matlab
Version 1.6.0.0 (598 KB) by
Hristo Zhivomirov
Phase difference measurement between two signals via DFT or cross-correlation.
The present code is a Matlab function that provides a measurement of the phase difference (as an angle) or time difference (as time duration) between two signals. In the first case, the measurement is based on the discrete Fourier transform, and in the second – on the cross-correlation computation. The methods are highly noise-resistive.
Several examples are given to clarify the usage of the function. For convenience, the input and output arguments are given at the beginning of the function.
The code is based on the theory described in:
[1] M. Sedlacek, M. Krumpholc. “Digital measurement of phase difference – a comparative study of DSP algorithms”. Metrology and Measurement Systems, Vol. XII, No. 4, pp. 427-448, 2005.
[2] M. Sedlacek. “Digital Measurement of Phase Difference of LF Signals A Comparison of DSP Algorithms”. Proceedings of XVII IMEKO World Congress, pp. 639-644, 2003.
Cite As
Hristo Zhivomirov (2026). Phase Difference Measurement with Matlab (https://uk.mathworks.com/matlabcentral/fileexchange/48025-phase-difference-measurement-with-matlab), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Created with
R2017b
Compatible with any release
Platform Compatibility
Windows macOS LinuxCategories
- Signal Processing > Signal Processing Toolbox > Transforms, Correlation, and Modeling > Transforms > Discrete Fourier and Cosine Transforms >
Find more on Discrete Fourier and Cosine Transforms in Help Center and MATLAB Answers
Tags
Acknowledgements
Inspired: Frequency Response Measurement with Matlab, Impedance Frequency Response Measurement with Matlab
Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
| Version | Published | Release Notes | |
|---|---|---|---|
| 1.6.0.0 | A new version of the code has been uploaded. |
||
| 1.5.0.0 | A new version of the code has been uploaded. |
||
| 1.4.0.0 | A new version of the code has been uploaded. |
||
| 1.3.0.0 | A new version of the code has been uploaded. |
||
| 1.2.0.0 | A new version of the code has been uploaded. |
||
| 1.1.0.0 | A new version of the code has been uploaded. |
||
| 1.0.0.0 |
