Hi Jennifer,
the error message is not that unhelpful. Although most of SPM is written in MATLAB language, some parts are written in languages that need to be compiled into executable code (C, C++), so-called .mex-files. mat2file is one of these functions. SPM has precompiled versions of all these files that should fit most use cases (Linux 64 bit, MacOS X 64 bit, Windows 32/64 bit for recent SPM12).
You should check first, whether in the @file_array/private folder exist any *.mex* files. If not, please check whether you have applied any updates to SPM. To apply updates, the files from the update need to be copied into the original SPM folder. Just placing an update folder before the original SPM folder on the MATLAB path may hide files. If you still don't find the .mex files or they are not working you may need to compile the mex files yourself. How to do this depends on your operating system. https://en.wikibooks.org/wiki/SPM/ may have some information to get you started.
Best,
Volkmar
|