Error in SVM decoding

Hi all,

I've used the Decoding function several times without problems, but now every time I try I get this error (both SVM and Max-correlation):

BST> Found 2 different conditions across 99 trials:

  1. Condition "Dots" with 49 associated trials
  2. Condition "Numbers" with 50 associated trials

** Error: [process_decoding_svm] Decoding > SVM decoding
** Line 182: Unrecognized function or variable 'channelMatRef'.
**
** Call stack:
** >process_decoding_svm.m>Run at 182
** >process_decoding_svm.m at 24
** >bst_process.m>Run at 236
** >bst_process.m at 38
** >panel_process1.m>RunProcess at 138
** >panel_process1.m at 26
** >gui_brainstorm.m>CreateWindow/ProcessRun_Callback at 781
** >bst_call.m at 28
** >gui_brainstorm.m>@(h,ev)bst_call(@ProcessRun_Callback) at 301
**
**


I am running last Brainstorm version (20-Mar-2025), Matlab R2024a, Windows 11.

Thank you,
paolo

This bug is now fixed in: ff1501f

Please update your Brainstorm instance to get the fix.

It was introduced when the SVM decoding process was extended to be able to ignore bad channels. Moreover, there is now a check for same channels in case of the trials coming from different Study folders.

1 Like

Thank you Raymundo, now it works perfectly!

paolo