Dear Brainstorm users and developers,

I would highly appreciate your help with the following issue.

Usually, I use Brainstorm GUI to compute Amplitude envelope correlation (AEC), and it worked fine. However, now I have to compute it at the preprocessed files in MATLAB, where signals from several sensors are converted into one via PCA.

It leaves me with the data structure with a shape (1, 300000), where 1 - is the only one "channel" - signal from the particular brain area I am exploring, while 300000 - time points (i.e. 5 minutes).

I want to use the AEC script to compute a correlation between two such files (essentially, two signals from different areas), but I could not use this script in MATLAB - it keeps reporting "Not enough input arguments", even if I use transposed data structures to compute connectivity coefficient.

Could you please tell me, what adjustments should I make in code in order to use the AEC connectivity script in Matlab on such data?

Thank you.

Kind regards,

Oksana.