Export MRI to FieldTrip

Dear Brainstormers,

some time ago I exported T1 files to FieldTrip using out_fieldtrip_mri. Afterwards I read the file using ft_read_mri.
For some reason reading the file via the FieldTrip function does not work for the recently exported files and the older files anymore. This is the error message I get:
Undefined function ‘eq’ for input arguments of type ‘struct’.

Error in filetype_check_uri (line 62)
sep = find(filename==’:’);

Error in fetch_url (line 33)
if filetype_check_uri(filename, ‘sftp’)

Error in ft_read_mri (line 76)
filename = fetch_url(filename);

Do you have any idea what could cause this or have come across similar problems?
Could it be that something has been changed in the FieldTrip function so that the export output from Brainstorm is not compatible anymore?

Many thanks in advance!

Hello,

If you export the MRI from Brainstorm out_fieldtrip_mri, you directly have a FieldTrip structure, you don’t have to reconvert it with a FieldTrip function. ft_read_mri is meant to import files (eg. .nii) into a FieldTrip structure.

Francois

That sounds like it should have been obvious to me. Sorry for bothering you, it is my first time using these Toolboxes.
Thank you very much!