Error report while running permutation t-test

Hi sir,
when I was running the permutation t-test i had faced an error "Arguments must be type double".
how can I resolve that? do you have any suggestions?

best regard,

We would need an example dataset to reproduce this error.

Please try to reproduce this error with a minimal set of files: 2 files in FilesA, 2 files in FilesB.
Zip the 4 files + the channel file together, upload it somewhere, and post the download link here.

Thanks

Hi professor,
thanks for your reply
I made a minimal set as you had said. the download link is as follows:
https://s21.picofile.com/d/8444209576/ce5b1835-f514-4ab1-9430-f0e3e4913c82/Dataset.rar

Thank you for sending these files. However, I don't know what to do with them.
Instead, please share the files as they are in the Brainstorm database (files channel_...mat and data_...mat).
To see where a file is located on the hard drive: right-click on the file > File > Show in file explorer.

Please include screen captures of :

  • the Brainstorm window showing the data files you sent me highlighted in the Brainstorm database explorer + the same files selected the in Process2 tab
  • the Pipeline Editor window showing the options of the test process

And make sure that this produces exactly the error message you sent previously.

Thanks

Hi professor,
I prepared files as you wanted, the files in the Brainstorm database have been sent via the previous link. however if other files are necessary I can be sent them to you
I hope these files be useful.

thanks for your support
best regard,

https://s20.picofile.com/d/8444325942/26bb7d10-17de-40a3-a241-ae434225a669/Brainstorm.rar

The files you sent are name "1.mat" and "2.mat", and contain only a matrix data.
These are not files coming from the Brainstorm database.
I can't reproduce the error your reported with the files you sent. These are NOT Brainstorm files.

If you want me to be able to test anything, please send me the 4 data files (4x data_...mat) + the corresponding channel files (channel_...mat) as they are in the Brainstorm database.
Total: 5 or 6 files.

Hi professor,
thanks for your reply
I extracted 4 data files and 1 channel file from the Brainstorm database as you had said in previous conversations. I put the download link below.
https://s21.picofile.com/d/8444368200/283026bd-5371-4726-b327-cb7395a611b0/Brainstorm_Error.rar

best regard,

Thank you for the example files.

The problem is that your data was saved in single instead of double precision, and that bst_meanvar.m does not accept single precision inputs.

I pushed two fixes:

Update Brainstorm to get these fixes.
Note that we do not recommend importing data from partly pre-processed files in .mat format, but rather recommend always importing EEG from the original RAW files and do the pre-processing in Brainstorm.

Hi professor,
I resolved the errors by reimporting raw data and doing pe-processing in updated Brainstorm
thanks for your reply

best regard,