[FieldTrip] non-existent mat in BEM headmodel

Ricardo Moura ricardoojm at gmail.com
Wed Mar 27 17:10:05 CET 2013


Dear all
I am creating a BEM model for eeg, following the appropriate tutorial, but
I have a problem when preparing the headmodel. The output I have from the
ft_prepare_headmodel command does not contain the "mat", and so, when I try
to generate the leadfield, it returns an error message due to non existent
"mat". I saw that other users had similar problem, but I haven't found a
solution though. So, what is wrong with my script?

Thanks a lot in advance!
Best,
Ricardo




load standard_mri.mat
mri_orig=mri;
disp(mri)

% Segmenting the data
cfg = [];
cfg.output= {'scalp','skull','brain'};
segmentedmri  = ft_volumesegment(cfg, mri_orig);
disp(segmentedmri)
save segmentedmri segmentedmri

% MESH
cfg=[];
cfg.tissue={'brain','skull','scalp'};
cfg.numvertices = [3000 2000 1000];
bnd=ft_prepare_mesh(cfg,segmentedmri);
disp(bnd(1))

% Head Model = variavel vol
cfg        = [];
cfg.method ='bem_dipoli'; %dipoli singlesphere
vol        = ft_prepare_headmodel(cfg, segmentedmri);


>> disp(vol)
             bnd: [1x3 struct]
            cond: [0.3300 0.0041 0.3300]
    skin_surface: 1
          source: 3
            type: 'dipoli'
            unit: 'mm'
             cfg: [1x1 struct]
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.science.ru.nl/pipermail/fieldtrip/attachments/20130327/6eda8a5e/attachment.html>


More information about the fieldtrip mailing list