Hi!
I don’t know why, but everytime I try to compute sources using Best I get this error message:
** Error: Line 297: Undefined function or variable 'ButtonGroup'.
**
** Call stack:
** >panel_brainentropy.m>CreatePanel/CreatePanelType at 297
** >panel_brainentropy.m>CreatePanel at 141
** >panel_brainentropy.m at 30
** >gui_show_dialog.m at 51
** >bst_call.m at 26
** >panel_process_select.m>CreatePanel/EditProperties_Callback at 2017
** >panel_process_select.m>@(h,ev)EditProperties_Callback(iProcess,optNames{iOpt}) at 0
**
Help please!
(I’m using Matblab 2018 b, under windows)
Hi @edelaire can you check this ?
Hello,
i will have a look monday as i need to have IT install matlab2018b on our machine.
However, I would strongly encourage you to update your MATLAB version to at least 2021b (ideally 2023b or newer) as you will benefit from several performance improvements made by MATLAB, notably for the optimization function. (2018 was already 7 years ago…)
1 Like
Hello,
I prepared a fix ( Improve support to Matlab R2018b by Edouard2laire · Pull Request #41 · multifunkim/best-brainstorm · GitHub ) and will merge it once github is back online (https://www.githubstatus.com/).
Out of curiosity, i compared 2018b and 2025a versions of Matlab to localize 45 seconds of nirs data. 2018b took 135 seconds. 2025a took 21 seconds.
Edit: The code is merged. You can update the plugin and try again.
Edouard
2 Likes
@tourette95,
In the Brainstorm development team, we aim to provide support for 10-year old Matlab versions.
However, as indicated in the post above, newer versions of Matlab have often better performance. While it is not required to update your Matlab version, you may want to try newer versions (maybe not older than 5-years old), and see if that is convenient for you.
Epilogue:
The bug was caused due to the Matlab version (2018b). Because after 2019b, the nested functions inherit (Java) import statements from parent functions, and the panel for BEST was taking advantage of that feature.
2 Likes
Understood, I will update to Matlab 2023 version
, I hope my computer’s memory can handle it 
The update is not mandatory nor required 
You could have installed both versions and evaluate which one matches better your expectations and computational power.
1 Like
Hi!
I’ve already installed Matlab 2021b, but now I’m not sure:
Should I reinstall Brainstorm too (and delete all my previous work and protocols)? or Can I continue using the already installed Brainstorm?
thank in advances!
You can continue using the same brainstorm / database
1 Like