MATLAB Answers


Coherence as a function of time

Asked by Hinna Ahmed on 16 Oct 2019
Latest activity Commented on by Hinna Ahmed on 21 Oct 2019
How is it possible in MATLAB to calculate Coherence as a function of time for two nonstationary signals (EEG)?


Sign in to comment.


1 Answer

Answer by Bjorn Gustavsson on 16 Oct 2019

Have a look at mscohere, and its help and documentation. It should allow you to calculate the coherence. My version resides in the signal processing toolbox. If you don't have that toolbox, I think you'd have to write your own versions of
spectrogram, and related functions, that will be a bit of a bother but shouldn't be toooooo hard if your application allows you to be a bit less general than Mathworks has to be.

  1 Comment

Thank you very much. I have tried wih mscohere but it is not possible. I want to generate a similar image as shown below.

Sign in to comment.