<html><head><meta http-equiv="Content-Type" content="text/html charset=iso-8859-1"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;"><br><div apple-content-edited="true">
<div><div style="orphans: 2; widows: 2; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;">Dear Helen,</div></div><div style="orphans: 2; widows: 2; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;"><br></div><div style="orphans: 2; widows: 2; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;">you seem to compute the source model on the fly. From the feedback "642 dipoles inside, 0 outside" I suspect some mismatch between the units of the geometrical objects (i.e. headmodel, sourcemodel, electrodes).</div><div style="orphans: 2; widows: 2; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;">Could you please execute the following where vol is the headmodel (3rd compartment of the bem model), grid your sourcemodel and elec your electrodes:</div><div style="orphans: 2; widows: 2; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;"><br></div><div style="orphans: 2; widows: 2; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;"><div style="margin: 0px;">    figure;</div><div style="margin: 0px;">    ft_plot_vol(vol, <span style="color: #b245f3">'edgecolor'</span>, <span style="color: #b245f3">'none'</span>); alpha <span style="color: #b245f3">0.4</span>;</div><div style="margin: 0px;">    ft_plot_mesh(grid.pos(grid.inside,:));</div><div style="margin: 0px;">    ft_plot_sens(elec, 'style', '*g');</div><div style="margin: 0px;"><div><br></div></div><div>best</div><div>Tzvetan</div><div><br></div></div></div><div><br class="Apple-interchange-newline"><blockquote type="cite"><div ocsi="0" fpstyle="1" style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;"><div style="direction: ltr; font-family: Tahoma; font-size: 10pt;">Dear Fieldtrip Users,<br><br>In attempting to use Beamformer source localization, I get an error when computing ft_sourceanalysis with the code below:<br><br>cfg = [];<br>cfg.method = 'dics';<br>cfg.frequency = 6;<br>cfg.elecfile = 'GSN_HydroCel_129_short.sfp';<br>cfg.vol = vol;<br>cfg.dics.projectnoise = 'yes';<br>cfg.dics.lambda = '5%';<br>cfg.dics.keepfilter = 'yes';<br>cfg.dics.realfilter = 'yes';<br>sourceAll = ft_sourceanalysis(cfg, freqAll);<br><br>the call to "ft_selectdata" took 0 seconds and required the additional allocation of an estimated 0 MB<br>using headmodel specified in the configuration<br>reading electrodes from file 'GSN_HydroCel_129_short.sfp'<br>converting units from 'cm' to 'mm'<br>determining source compartment (1)<br>projecting electrodes on skin surface<br>combining electrode transfer and system matrix<br>creating dipole grid based on inward-shifted brain surface from volume conductor model<br>using headmodel specified in the configuration<br>using gradiometers specified in the configuration<br>642 dipoles inside, 0 dipoles outside brain<br>the call to "ft_prepare_sourcemodel" took 0 seconds and required the additional allocation of an estimated 42 MB<br>selection crsspctrm along dimension 3<br><br><font color="FF0000">Attempted to access noise(0); index must be a positive integer or logical.<br><br>Error in beamformer_dics (line 211)<br>    noise = noise(end);<br><br>Error in ft_sourceanalysis (line 662)<br>          dip(i) = beamformer_dics(grid, sens, vol, [],  squeeze(Cf(i,:,:)), optarg{:});</font><br> <br><br>I note that it runs without errors when I change cfg.dics.projectnoise to 'no' - but what implications does that bring? I find with that change I can make it through the rest of the Beamformer tutorial (the section on contrasting conditions) without explicit errors, but I nevertheless receive the following messages, following which my plotted figure is simply blank! Something is going wrong, I think.<br><br>(1)<br>sourceDiffInt = ft_sourceinterpolate(cfg, sourceDiff, mri);<br><font color="FF9900">Warning: use cfg.parameter='pow' instead of cfg.parameter='avg.pow'<span class="Apple-converted-space"> </span><br>> In ft_checkconfig (line 139)<br>  In ft_sourceinterpolate (line 119)<span class="Apple-converted-space"> </span><br><br><font color="FF9900">(2)</font><br><font color="FF9900"><font>ft_sourceplot(cfg, sourceDiffInt);</font><br>Warning: use cfg.funparameter='pow' instead of cfg.funparameter='avg.pow'<span class="Apple-converted-space"> </span><br>> In ft_checkconfig (line 139)<br>  In ft_sourceplot (line 210)<span class="Apple-converted-space"> </span><br>Warning: use cfg.maskparameter='pow' instead of cfg.maskparameter='avg.pow'<span class="Apple-converted-space"> </span><br>> In ft_checkconfig (line 139)<br>  In ft_sourceplot (line 213)<span class="Apple-converted-space"> </span><br>the input is segmented volume data with dimensions [128 128 128]<br>not plotting anatomy<br>Warning: could not determine dimord of "pow" in the following data<span class="Apple-converted-space"> </span><br>> In getdimord (line 516)<br>  In ft_sourceplot (line 390)<span class="Apple-converted-space"> </span></font><br></font><br>Anyone know what might be the problem? Thanks very much!<br><br>Helen Wieffering<br></div>_______________________________________________<br>fieldtrip mailing list<br><a href="mailto:fieldtrip@donders.ru.nl">fieldtrip@donders.ru.nl</a><br><a href="http://mailman.science.ru.nl/mailman/listinfo/fieldtrip">http://mailman.science.ru.nl/mailman/listinfo/fieldtrip</a></div></blockquote></div><br></body></html>