PTE: How is the connectivity matrix stored?

Hi Sebastian,

To get the connectivity matrix correctly formatted, you can do the following:

  • Read the file timefreq_connect…mat into the variable TfMat, or right-click > File > Export to Matlab > “TfMat”
  • R = bst_memory(‘GetConnectMatrix’, TfMat);
  • The matrix R is the connectivity matrix [signalsA x signalsB x Frequencies]
  • The frequency bins are described in the TfMat.Freqs: R(:,:,1) is frequency TfMat.Freqs(1)

For details on the algorithm, see directly the process function process_compress_sym.m

Cheers,
Francois