Hi,
Measuring Signal Similarities this documentation have a description about how to use mscohere function.
code for phase difference this link contain code for phase difference measurement with matlab implementation.
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!