Error when computing envelope correlation NxN [2023]

Hello BST forum,
I started to use brainstorm about one month ago. I worked without problem in anything, successfully computing envelope correlation NxN [2023] with YEO-17 in my protocol including 100 subjects. But after this update several days ago, I tried to do the same operation then came into two errors:

Problem finding the correct linked file for Subject04853/sub-88004853_ses-1_task-restEO_eeg/data__resampled_pruned_with_ICA_-2-s_epochs(_1).mat

Line 262: Brace indexing is not supported for variables of this type.

Uploading: image.png…
Uploading: 屏幕截图 2025-04-01 215140.png…

I hadn't adjusted this protocol for about three weeks, nothing in it changed. Then I tried the same operation on another dataset and properly finished the computation. I thought something becoming different in file indexing with this update, but I couldn't figure out it exactly. Can anyone explain it to me? Waiting anxiously. :sob:

There seems some error with the images uploaded, please post them again.

see if this could work?

along with my seetings in this task:



These are just same as what I did three weeks ago.

The error does not happen in the connectivity code, but it happens and it is not possible to identify the source files.

What happen if you double-click one of those source files in the Brainstorm database tree?

Surprisingly it works properly, l can view the data both in channels and source space, with the same file being announced not possible to identify in the error report. This really confused me. :face_with_spiral_eyes:

after many check, I found the most reasonable cause for my problem was my matlab toolbox conflict. I reinstalled matlab 2020a for another software's requirements(though it failed either) about ten days ago, just in the period when I left brainstorm data untouched. I used same data and operation on another computer and everything is fine. As I can't give up Parallel toolbox in matlab, I supposed the only choice for me is to uninstall my matlab completely and use another version with no confilcts in toolboxs. I will report following situations after I realize my hypothesis.

I finally installed another matlab (2022a)and reset brainstorm, and succeeded in computing envelope correlation. BUT,I figured out everything only worked properly without checking 'flatten unconstrained source orientations with pca first'"(though I used unconstrained source actually). the result seemed right:

About three weeks ago I did check this option when doing computation, but this time this leads to errors like what I posted before.

Hi @ziyang, thanks for all the details. I'll investigate further this issue

@ziyang, which version o Brainstorm are you using?
To get info about the system, you can use the option Help > System info in the main window