<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="">
Hassan,
<div class="">Can you please provide a bit more information with respect to what version of fieldtrip, matlab and operating system you use?</div>
<div class="">Did you check whether the ‘seg’ looks healthy? Does the ‘mri’ plot well? We need more information to work with.</div>
<div class="">Best,</div>
<div class="">Jan-Mathijs</div>
<div class=""><br class="">
</div>
<div class=""><br class="">
</div>
<div class=""><br class="">
<div>
<blockquote type="cite" class="">
<div class="">On 09 Mar 2016, at 21:26, Hassan Aleem <<a href="mailto:ha438@georgetown.edu" class="">ha438@georgetown.edu</a>> wrote:</div>
<br class="Apple-interchange-newline">
<div class="">
<div dir="ltr" class="">
<div class="">
<div class="">
<div class="">
<div class="">
<div class="">Hi everyone,<br class="">
<br class="">
</div>
I have a question that is possibly very easy to solve but is evading me. I am unable to get ft_sourceplot to work. For example when I run the code:<br class="">
<br class="">
[mri]               = ft_read_mri('MNI152_T1_0.5mm.nii');<br class="">
mri.coordsys        ='MNI'<br class="">
<br class="">
cfg                 = [];<br class="">
cfg.output          = {'brain' 'scalp' 'skull'};<br class="">
seg                 = ft_volumesegment(cfg, mri);<br class="">
seg.anatomy         = mri.anatomy;<br class="">
<br class="">
cfg                 = [];<br class="">
cfg.funparameter    = 'brain';<br class="">
<b class="">ft_sourceplot(cfg,seg)</b><br class="">
<br class="">
</div>
I get the error:<br class="">
<br class="">
<u class="">Error using textscan</u><br class="">
First input can not be empty. Expected a non-empty string or a valid file-id.<br class="">
<u class=""><br class="">
Error in issubfield (line 44)</u><br class="">
t = textscan(f,'%s','delimiter','.');<br class="">
<u class=""><br class="">
Error in ft_sourceplot (line 460)</u><br class="">
hasmsk = issubfield(functional, cfg.maskparameter);<br class="">
<br class="">
</div>
This is happening regardless of what stage I use ft_sourceplot.<br class="">
<br class="">
</div>
Thanks for your consideration!<br class="">
<br class="">
</div>
Hassan<br class="">
</div>
_______________________________________________<br class="">
fieldtrip mailing list<br class="">
<a href="mailto:fieldtrip@donders.ru.nl" class="">fieldtrip@donders.ru.nl</a><br class="">
http://mailman.science.ru.nl/mailman/listinfo/fieldtrip</div>
</blockquote>
</div>
<br class="">
</div>
</body>
</html>