Error read_gifti_file
25 次查看(过去 30 天)
显示 更早的评论
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 个评论
Walter Roberson
2023-2-8
I would be interested to see what happens if you readstruct() the gii file.
采纳的回答
Sarthak
2023-4-19
Hi Emma,
It is a bit difficult to analyse the exact reason for your error without your model file,however as per my understanding there may be multiple reasons such as
- File path issue
- MATLAB and FieldTrip version mismatch
- File corruption
- Fieldtrip configuration issues
If you have verified that there are no such issues and you have the required dependencies and permissions to access the file, you may try to debug the code and use the step-in function feature to find the cause of the issue.
Attaching a documentation link for your reference
0 个评论
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Data Import and Analysis 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!