Back to the main page.

Bug 886 - ft_read_mri requires SPM8 toolbox

Status CLOSED FIXED
Reported 2011-08-23 15:45:00 +0200
Modified 2011-08-31 14:49:37 +0200
Product: FieldTrip
Component: fileio
Version: unspecified
Hardware: PC
Operating System: Linux
Importance: P1 normal
Assigned to: Jan-Mathijs Schoffelen
URL:
Tags:
Depends on:
Blocks:
See also:

Lilla Magyari - 2011-08-23 15:45:35 +0200

Hi, when I add the path properly, and I try to read in a .nii mri file, it gives an error message that I should add the path to do SPM8 toolbox myself. Shouldn't the function automatically add this toolbox? >> addpath /home/common/matlab/fieldtrip; ft_defaults; >> mir =ft_read_mri('templateMRI.nii') ??? Error using ==> ft_read_mri at 91 the SPM5 or SPM8 toolbox is required to read *.nii files Lilla


Jan-Mathijs Schoffelen - 2011-08-29 15:06:44 +0200

Good point. It would make sense to automatically add this, if requested.


Jan-Mathijs Schoffelen - 2011-08-29 15:12:13 +0200

Hi Lilla, I updated ft_read_mri. Could you check whether it now works (using a path which does not yet include spm8)?


Lilla Magyari - 2011-08-31 10:53:57 +0200

(In reply to comment #2) > Hi Lilla, > > I updated ft_read_mri. Could you check whether it now works (using a path which > does not yet include spm8)? hi, yes, it works! Lilla