Coherence calculation results

The coherence of a signal with itself is one, and we don't care about this result. We set the diagonal to zero for making the visualization easier (colormap scales to the maximum value instead of always 1).

For the non-diagonal zeros, it means that the number of data points you used to estimate it is too low to assess that the coherence value obtained is meaningful. Check the code of function bst_cohn.m for more information about this parametric estimation: