Error read_gifti_file
Mostrar comentarios más antiguos
Hi,
I'm trying to use the FieldTrip toolbox in MATLAB to load a file (cortex_8196.surf.gii), but I am getting an error that says it is unable to read the file.
This is the line that is causing the error:
sourcemodel = ft_read_headshape('C:\Users\Emmak\Documents\school\bmed_599\fieldtrip\fieldtrip20230204\template\, . . .
sourcemodel\cortex_8196.surf.gii');
This is the error:
Error using read_gifti_file
[GIFTI] Loading of XML file
C:\Users\Emmak\Documents\school\bmed_599\fieldtrip\fieldtrip-20230204\template\sourcemodel\cortex_8196.surf.gii
failed.
this = read_gifti_file(varargin{1},giftistruct);
g = gifti(filename);
What might be causing this?
Thanks!
Emma
4 comentarios
Walter Roberson
el 8 de Feb. de 2023
Most obvious thing first:
filename = 'C:\Users\Emmak\Documents\school\bmed_599\fieldtrip\fieldtrip-20230204\template\sourcemodel\cortex_8196.surf.gii';
ls(filename)
fileattrib(filename)
to check that the file exists and that it is readable.
Emma Jacobs
el 8 de Feb. de 2023
Editada: Walter Roberson
el 19 de Abr. de 2023
Walter Roberson
el 8 de Feb. de 2023
I would be interested to see what happens if you readstruct() the gii file.
Emma Jacobs
el 8 de Feb. de 2023
Respuesta aceptada
Más respuestas (0)
Categorías
Más información sobre Data Import and Analysis en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!