Envelope Correlation N x N (2020) - Dimensions of arrays being concatenated are not consistent

Thank you for the example file.
I could reproduce exactly the behavior you reported.

I noticed that the values are mostly the same, except for some differences:

  • The old function (AEC) return positive/negative values, while the new function (HENV) returns strictly positive values
  • A small number of values are very different (not only a sign difference), like the one selected in the screen captures below (same as yours, but with the colormap configured with the option "Absolute values")

Old function (AEC):
image

New function (HENV):
image

@hossein27en
You can download the example posted above as a readily available Brainstorm protocol from the link below. You can import it with the menu File > Load protocol > Load from zip file.
https://www.dropbox.com/s/00fqc10srbbxq5n/TutorialConnectivity_Comparison_AEC.zip?dl=0