methlabUZH / automagic

Automagic
GNU General Public License v3.0
89 stars 32 forks source link

Undefined function 'contains' #11

Closed ghost closed 4 years ago

ghost commented 5 years ago

Hi, first of all, I want to say thank you for your great work developing this tool. I have a problem when I type "runAutomagic", in the command window appears this error:

Undefined function 'contains' for input arguments of type 'cell'.

Error in addAutomagicPaths (line 32) Index = contains(parts, automagic);

Error in runAutomagic (line 5) addAutomagicPaths();

How can I solve this? I have Matlab 2016 and I followed the steps correctly (I unzipped the folder and I changed my working directory to the root folder).

JohnSmallridge commented 5 years ago

Hi, Thank you for your question Are you running 2016a? I think the 'contain' function was introduced in MATALB 2016b Could you try updating Matlab and see if it fixes it?