<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">
I don’t know about SUMA. This looks as if it’s a low-level reading error, which does not have anything to do with FieldTrip.
<div class="">The error message suggests that the gifti-reading function cannot handle the files.</div>
<div class="">Have you asked Christoph?</div>
<div class=""><br class="">
</div>
<div class="">Best,</div>
<div class="">Jan-Mathijs</div>
<div class=""><br class="">
</div>
<div class="">
<div class=""><br class="">
<div class="">
<div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">
J.M.Schoffelen<br class="">
Senior Researcher, VIDI-fellow<br class="">
Donders Centre for Cognitive Neuroimaging, Nijmegen, The Netherlands<br class="">
<br class="">
<br class="">
</div>
</div>
</div>
<div class=""><br class="">
</div>
<div class="">
<div>
<blockquote type="cite" class="">
<div class="">On 11 Dec 2016, at 18:42, Merve Kaptan <<a href="mailto:mervekaptan5@gmail.com" class="">mervekaptan5@gmail.com</a>> wrote:</div>
<br class="Apple-interchange-newline">
<div class="">
<div dir="ltr" class="">
<div dir="auto" class="">Hello dear FieldTrip users,
<div dir="auto" class=""><br class="">
</div>
<div dir="auto" class="">I have a problem in source modeling. </div>
<div dir="auto" class="">I get my Suma processed anatomical files </div>
<div dir="auto" class="">
<div style="font-family:sans-serif;font-size:9.856px" dir="auto" class=""><br class="">
<br class="">
</div>
<div style="font-family:sans-serif" dir="auto" class="">
<div class="">>file_LH = fullfile(SubjectDir,'std.10.lh<wbr class="">.white.gii) ;</div>
<div class="">>file_RH= fullfile(SubjectDir,'std.10.rh<wbr class="">.white.gii');</div>
</div>
<div style="font-family:sans-serif" dir="auto" class=""><br class="">
</div>
<div style="font-family:sans-serif" dir="auto" class="">
<div class="">file_LH = C:\Users\Christoph\Documents\<wbr class="">MATLAB\forHilola\data\vp01-fs\<wbr class="">bem\SUMA\std.10.lh.white.gii</div>
<div dir="auto" class=""><font size="4" class="">(same for Right hemisphere) </font></div>
<div dir="auto" style="font-size:9.856px" class=""> </div>
<div dir="auto" class=""><font size="4" class="">And then I simply want to read headshape</font></div>
<div dir="auto" style="font-size:9.856px" class=""><br class="">
</div>
</div>
<div style="font-family:sans-serif;font-size:9.856px" dir="auto" class=""><br class="">
</div>
<div style="font-family:sans-serif" dir="auto" class=""> >sourcespace_S_SUMA = ft_read_headshape({file_LH file_RH}, 'format', 'gifti');<br class="">
</div>
<div style="font-family:sans-serif;font-size:9.856px" dir="auto" class=""><br class="">
</div>
<div style="font-family:sans-serif" dir="auto" class=""><font size="4" class="">But it gives this error message</font></div>
<div style="font-family:sans-serif" dir="auto" class="">error message: </div>
<div style="font-family:sans-serif" dir="auto" class="">
<div class="">Error using read_gifti_file (line 17)</div>
<div class="">[GIFTI] Loading of XML file C:\Users\Christoph\Documents\MATLAB\forHilola\data\vp01-fs\bem\SUMA\std.10.lh.white.gii</div>
<div class="">failed.</div>
<div class=""><br class="">
</div>
<div class="">Error in gifti (line 68)</div>
<div class=""> this = read_gifti_file(varargin{1},gi<wbr class="">ftistruct);</div>
<div class=""><br class="">
</div>
<div class="">Error in ft_read_headshape (line 289)</div>
<div class=""> g = gifti(filename);</div>
<div class=""><br class="">
</div>
<div class="">Error in ft_read_headshape (line 93)</div>
<div class=""> tmp = ft_read_headshape(filename{i}, varargin{:});</div>
<div dir="auto" style="font-size:9.856px" class=""><br class="">
</div>
<div dir="auto" style="font-size:9.856px" class=""><br class="">
</div>
<div dir="auto" class=""><font size="4" class="">I checked the directory and everything, so should not be a problem. Any help would be appreciated! </font></div>
<div dir="auto" class=""><font size="4" class="">Thank you very much! </font></div>
<div dir="auto" class=""><font size="4" class=""><br class="">
Hilola Hakimova, </font></div>
<div dir="auto" class=""><font size="4" class="">Tuebingen MEG center </font></div>
</div>
</div>
</div>
</div>
_______________________________________________<br class="">
fieldtrip mailing list<br class="">
<a href="mailto:fieldtrip@donders.ru.nl" class="">fieldtrip@donders.ru.nl</a><br class="">
https://mailman.science.ru.nl/mailman/listinfo/fieldtrip</div>
</blockquote>
</div>
</div>
</div>
<br class="">
</body>
</html>