Issue with CAT segmentation

Hi everyone,
I am running brainstorm on a MacBook PRO 2017 10.14.6, Matlab version R2018B. I am trying to use CAT segmentation, but it gives me the following error: Error: Cannot identify CAT12 version: please re-install it.
I deleted it from the spm folder, re-downloaded, and reinstalled it, but it gives me the same message. Any idea how I can solve the issue?

  • Make sure you set up correctly the SPM path in the Brainstorm preferences
  • Remove all the folders that are not strictly related with the MATLAB installation from your Matlab path, and save it permanently
  • Restart Matlab
  • Go to the brainstorm3 folder, run brainstorm.m
  • In your Matlab command window execute:
    bst_spm_init(1, 'cat12')
    [catName, catVer] = cat_version
  • Please copy-paste here what you obtain

this is what matlab answered

catName =

'CAT12.7'

catVer =

'1728'

thanks for the help!

Also, I tried use the spm folder which is aleady inside the fieldtrip folder that I am using (version 20180121), and it gives me this different error message

Then it should work in Brainstorm now.
The error you reported indicates that cat_version was returning something else.

Also, I tried use the spm folder which is aleady inside the fieldtrip folder that I am using (version 20180121), and it gives me this different error message

For running CAT12, do not try to use any other version than the current one, downloaded from the SPM website (or obtained with spm_update).
Make sure you removed FieldTrip, SPM, EEGLAB or any other program from your MATLAB path before starting Brainstorm.

I downloaded SPM again and it worked, the problem was relying on me using the spm folder which comes with fieldtrip. Thanks for your help!!! :grinning: :grinning: :grinning: