Closed fpellegrini closed 1 year ago
EDIT: I now saw that something similar is already included in the plotting function: https://github.com/arnodelorme/roiconnect/blob/0de6509af56e2c8257c7df267cfa51c0828fbf1a/pop_roi_connectplot.m#L328
but I think it would be convenient to also have this matrix format in the EEG struct, overall when doing statistics etc.
Yes, it would be nice to have it in the computation function. I will make the change.
I have added the code e8fd79f However, I am not applying yet the transformation. I am concerned it will mess up the plotting. Always feel free to submit pull request to change the code.
So far, we get the MIM/MIC/TRGC output here as a vector that contains the connectivity for all indices:
https://github.com/arnodelorme/roiconnect/blob/0de6509af56e2c8257c7df267cfa51c0828fbf1a/pop_roi_connect.m#L130
It would probably nice to have a vec2mat function that takes the vector as input and outputs the connecitivity as a ROIxROIxFrequency matrix. Please see a suggestion here: