Signal Relation is a user-friendly application for investigation of the hidden relations between two signals in the time and frequency domain, i.e. measuring of the similarity of two signals. The software provides correlation or coherence analysis, and some signal statistics: min, max, mean and root-mean-squared values of the signals, along with signals’ power, energy, length and duration.
A few example files (.dat, .txt, .wav, .mp3) are given in order to clarify the usage of the application: “Cop Car Siren 1.mp3” and “Cop Car Siren 2.wav” could be analyzed via cross-correlation (e.g. for similarity of the siren signals), “signal 1.txt” and “signal 2.dat” could be analyzed for common frequency content, and “Glock18.wav” could be analyzed via autocorrelation (e.g. for a fire rate measurement).
The code is based on the theory described in:
 D. Manolakis, V. Ingle. Applied Digital Signal Processing. Cambridge, Cambridge University Press, 2011.
 P. Stoica, R. Moses. Spectral Analysis of Signals. Upper Saddle River, Prentice Hall, 2005.
 G. Heinzel, A. Rudiger, R. Schilling. Spectrum and spectral density estimation by the Discrete Fourier transform (DFT), including a comprehensive list of window functions and some new flat-top windows. Germany, Hannover, Max-Planck-Institut für Gravitationsphysik, 2002.
 N. Majumdar, S. Banerjee. MATLAB Graphics and Data Visualization, Birmingham, Packt Publishing, 2012.
Hristo Zhivomirov (2022). Correlation and Coherence of Signals with Matlab Implementation (https://www.mathworks.com/matlabcentral/fileexchange/64112-correlation-and-coherence-of-signals-with-matlab-implementation), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform CompatibilityWindows macOS Linux
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!