This procedure is described here:
https://neuroimage.usc.edu/brainstorm/Tutorials/Connectivity#On_the_hard_drive
If you think there is a problem with this function, please:
- Share the timefreq_connect_...m file with which you are having a problem (upload it somewhere and post the download link).
- Post a Matlab script that illustrates your concern (full code, from the file structure that you shared)
Thanks