Hello everyone,
I have a problem when I am trying to pre-process fMRI data using Matlab 2021b ('9.11.0.1769968 (R2021b)') and SPM12 on my Mac M1 with Big Sur (11.3.1).
I got this error:
------------------------------------------------------------------------
22-Dec-2021 14:41:59 - Running job #5
------------------------------------------------------------------------
22-Dec-2021 14:41:59 - Running 'Named File Selector'
22-Dec-2021 14:42:00 - Done 'Named File Selector'
22-Dec-2021 14:42:00 - Running 'Realign: Estimate & Reslice'
SPM12: spm_realign (v7141) 14:42:00 - 22/12/2021
========================================================================
Completed : 14:44:23 - 22/12/2021
SPM12: spm_reslice (v7141) 14:44:23 - 22/12/2021
========================================================================
22-Dec-2021 14:44:27 - Failed 'Realign: Estimate & Reslice'
Error using mat2file (line 16)
mat2file.c not compiled - see Makefile
In file "[log in to unmask]" (v7147), function "mat2file" at line 16.
In file "[log in to unmask]" (v7147), function "subfun" at line 164.
In file "[log in to unmask]" (v7147), function "subsasgn" at line 85.
In file "/Users/mc/Documents/SPM/spm12/spm_write_plane.m" (v6079), function "spm_write_plane" at line 31.
In file "/Users/mc/Documents/SPM/spm12/spm_write_vol.m" (v5731), function "spm_write_vol" at line 84.
In file "/Users/mc/Documents/SPM/spm12/spm_reslice.m" (v7141), function "reslice_images" at line 248.
In file "/Users/mc/Documents/SPM/spm12/spm_reslice.m" (v7141), function "spm_reslice" at line 136.
In file "/Users/mc/Documents/SPM/spm12/config/spm_run_realign.m" (v7141), function "spm_run_realign" at line 44.
No executable modules, but still unresolved dependencies or incomplete module inputs.
The following modules did not run:
Failed: Realign: Estimate & Reslice
Skipped: Coregister: Estimate & Reslice
Skipped: fMRI model specification
Skipped: Model estimation
Error using MATLABbatch system
Job execution failed. The full log of this run can be found in MATLAB command window, starting with the lines (look for the line showing the exact #job as displayed in this error message)
------------------
Running job #5
------------------
So the error comes from Realign: Estimate & Reslice and is due to the function mat2file. According to: https://www.jiscmail.ac.uk/cgi-bin/wa-jisc.exe?A2=SPM;1ef34dd3.2109 this could involved a problem of configuration of Matlab vs SPM vs Mac M1. However I am not sure to understand if this is the case and how could I check it. If you have an idea that would be greatly appreciated.
Thank you in advance,
Maxime
|