[FieldTrip] quick fix? ft_sourceplot error line 460
Schoffelen, J.M. (Jan Mathijs)
jan.schoffelen at donders.ru.nl
Thu Mar 10 09:00:09 CET 2016
Hassan,
Can you please provide a bit more information with respect to what version of fieldtrip, matlab and operating system you use?
Did you check whether the ‘seg’ looks healthy? Does the ‘mri’ plot well? We need more information to work with.
Best,
Jan-Mathijs
On 09 Mar 2016, at 21:26, Hassan Aleem <ha438 at georgetown.edu<mailto:ha438 at georgetown.edu>> wrote:
Hi everyone,
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:
[mri] = ft_read_mri('MNI152_T1_0.5mm.nii');
mri.coordsys ='MNI'
cfg = [];
cfg.output = {'brain' 'scalp' 'skull'};
seg = ft_volumesegment(cfg, mri);
seg.anatomy = mri.anatomy;
cfg = [];
cfg.funparameter = 'brain';
ft_sourceplot(cfg,seg)
I get the error:
Error using textscan
First input can not be empty. Expected a non-empty string or a valid file-id.
Error in issubfield (line 44)
t = textscan(f,'%s','delimiter','.');
Error in ft_sourceplot (line 460)
hasmsk = issubfield(functional, cfg.maskparameter);
This is happening regardless of what stage I use ft_sourceplot.
Thanks for your consideration!
Hassan
_______________________________________________
fieldtrip mailing list
fieldtrip at donders.ru.nl<mailto:fieldtrip at donders.ru.nl>
http://mailman.science.ru.nl/mailman/listinfo/fieldtrip
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.science.ru.nl/pipermail/fieldtrip/attachments/20160310/2f76e7f5/attachment-0002.html>
More information about the fieldtrip
mailing list