Hi Junpeng,
The connectivity matrices are compressed before they are saved. The coherence, correlation and phase-locking value are symmetric measures (AxB=BxA), so we don’t have to save twice all the values.
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]
- For PLV and coherence: he frequency bins are described in the TfMat.Freqs: R(:,:,1) is frequency TfMat.Freqs(1)
Alternatively, you can use the function export_timefreq.m: right-click on a connectivity file > File > Export to file > Save in an ASCII format (simple text file)
The p-values associated with the correlation measure are not saved. The threshold is asked as an input parameter and the output matrices are already thresholded (connectivity value set to zero).
Cheers,
Francois