<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">
<br class="">
<div><br class="">
<div class="">Begin forwarded message:</div>
<br class="Apple-interchange-newline">
<div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px;" class="">
<span style="font-family: -webkit-system-font, Helvetica Neue, Helvetica, sans-serif; color:rgba(0, 0, 0, 1.0);" class=""><b class="">From:
</b></span><span style="font-family: -webkit-system-font, Helvetica Neue, Helvetica, sans-serif;" class="">Patrick Wiegel <<a href="mailto:patrick.wiegel@sport.uni-freiburg.de" class="">patrick.wiegel@sport.uni-freiburg.de</a>><br class="">
</span></div>
<div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px;" class="">
<span style="font-family: -webkit-system-font, Helvetica Neue, Helvetica, sans-serif; color:rgba(0, 0, 0, 1.0);" class=""><b class="">Subject:
</b></span><span style="font-family: -webkit-system-font, Helvetica Neue, Helvetica, sans-serif;" class=""><b class="">Re: [FieldTrip] EEG beamformer source analyses</b><br class="">
</span></div>
<div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px;" class="">
<span style="font-family: -webkit-system-font, Helvetica Neue, Helvetica, sans-serif; color:rgba(0, 0, 0, 1.0);" class=""><b class="">Date:
</b></span><span style="font-family: -webkit-system-font, Helvetica Neue, Helvetica, sans-serif;" class="">15 September 2020 at 14:30:18 CEST<br class="">
</span></div>
<div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px;" class="">
<span style="font-family: -webkit-system-font, Helvetica Neue, Helvetica, sans-serif; color:rgba(0, 0, 0, 1.0);" class=""><b class="">To:
</b></span><span style="font-family: -webkit-system-font, Helvetica Neue, Helvetica, sans-serif;" class="">"<a href="mailto:jan.schoffelen@donders.ru.nl" class="">jan.schoffelen@donders.ru.nl</a>" <<a href="mailto:jan.schoffelen@donders.ru.nl" class="">jan.schoffelen@donders.ru.nl</a>><br class="">
</span></div>
<br class="">
<div class="">
<div class="">
<div class="" style="word-wrap:break-word; line-break:after-white-space">Dear Jan,
<div class=""><br class="">
</div>
<div class="">it seemed to be indeed a path problem. I was not aware that SPM was on my path all the time as well and as soon as I removed SPM from the path the error did not appear at that line.</div>
<div class=""><br class="">
</div>
<div class="">However, it seems there is another problem with the data/code. I cannot understand the error message (see below). It would be great if you help out. </div>
<div class=""><br class="">
</div>
<div class="">I checked my headmodel (constructed from the template MRI) and the corresponding electrode alignment. Both look good I think (see attachment). </div>
<div class=""><br class="">
</div>
<div class="">Is it because of the warning that the dipole collides with one of the electrodes?</div>
<div class=""><br class="">
</div>
<div class="">Best, Patrick</div>
<div class=""><br class="">
</div>
<div class=""></div>
</div>
<div class="" style="word-wrap:break-word; line-break:after-white-space">
<div class=""> </div>
<div class=""><br class="">
</div>
<div class=""><br class="">
</div>
<div class=""><br class="">
</div>
<div class="">Here is the code that appears once I start the section. </div>
<div class=""><br class="">
</div>
<div class="">
<div class="">the input is freq data with 64 channels, 1 frequencybins and no timebins</div>
<div class="">the call to "ft_selectdata" took 0 seconds and required the additional allocation of an estimated 2 MB</div>
<div class="">converting the linearly indexed channelcombinations into a square CSD-matrix</div>
<div class="">computing the leadfields on the fly</div>
<div class="">Your data and configuration allow for multiple sensor definitions.</div>
<div class="">Warning: using electrodes specified in the configuration\n </div>
<div class="">determining source compartment (3)</div>
<div class="">electrode transfer and system matrix were already combined</div>
<div class="">creating sourcemodel based on user specified dipole positions</div>
<div class="">using electrodes specified in the configuration</div>
<div class="">3466 dipoles inside, 3266 dipoles outside brain</div>
<div class="">the call to "ft_prepare_sourcemodel" took 0 seconds and required the additional allocation of an estimated 3 MB</div>
<div class="">computing forward model on the fly</div>
<div class="">scanning grid</div>
<div class="">scanning grid 64/3466</div>
<div class="">Warning: dipole collides with one of the electrodes </div>
<div class=""> In eeg_infinite_dipole at line 64</div>
<div class=""> In eeg_leadfieldb at line 92</div>
<div class=""> In ft_compute_leadfield at line 432</div>
<div class=""> In ft_inverse_dics at line 375</div>
<div class=""> In ft_sourceanalysis at line 763</div>
<div class=""><br class="">
</div>
<div class="">Error using svd</div>
<div class="">Input to SVD must not contain NaN or Inf.</div>
<div class=""><br class="">
</div>
<div class="">Error in ft_inverse_dics>pinv (line 590)</div>
<div class=""> [U,S,V] = svd(A,0);</div>
<div class=""><br class="">
</div>
<div class="">Error in ft_inverse_dics (line 475)</div>
<div class=""> filt = pinv(lf' * invC * lf) * lf' * invC; % Gross eqn. 3 & van Veen eqn. 23, use PINV/SVD to cover rank deficient</div>
<div class=""> leadfield</div>
<div class=""><br class="">
</div>
<div class="">Error in ft_sourceanalysis (line 763)</div>
<div class=""> dip(i) = ft_inverse_dics(sourcemodel, sens, headmodel, [], squeeze_Cf, methodopt{:}, leadfieldopt{:});</div>
<div class=""><br class="">
</div>
<div class="">Error in BEAMformer (line 133)</div>
<div class="">sourceAll = ft_sourceanalysis(cfg, frequ_all);</div>
<div class=""><br class="">
</div>
<div class=""><br class="">
</div>
<div class=""><br class="">
</div>
<div class="">
<div class="" style="letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; word-wrap: break-word; line-break: after-white-space;">
<b class="">Patrick Wiegel</b><br class="">
<font color="#680823" class="">Department of Sport and Sport Science</font>
<div class=""><br class="">
University of Freiburg <br class="">
Sandfangweg 4<br class="">
79117 Freiburg i. Br . <br class="">
<br class="">
<div class="">phone: +49 (0)761/ 203-4550<br class="">
<a href="mailto:patrick.wiegel@sport.uni-freiburg.de" class="">email: patrick.wiegel@sport.uni-freiburg.de</a><br class="">
web: <a href="http://www.sport.uni-freiburg.de" class="">www.sport.uni-freiburg.de</a></div>
</div>
</div>
</div>
<div class=""><br class="">
<blockquote type="cite" class="">
<div class="">Am 15.09.2020 um 12:00 schrieb Schoffelen, J.M. (Jan Mathijs) <<a href="mailto:jan.schoffelen@donders.ru.nl" class="">jan.schoffelen@donders.ru.nl</a>>:</div>
<br class="x_Apple-interchange-newline">
<div class="">
<div class="" style="word-wrap:break-word; line-break:after-white-space">OK, thanks for updating.
<div class=""><br class="">
</div>
<div class="">What’s the error stack now?</div>
<div class=""><br class="">
</div>
<div class="">Also, are you sure that you don’t have a messed up matlab path (e.g. have an overloaded rusty version from EEGLAB/SPM included)?</div>
<div class=""><br class="">
</div>
<div class="">If the error is the same, i.e. something happening in ‘ft_checkconfig, line 307’, this suggests that MATLAB still ends up using outdated code.</div>
<div class=""><br class="">
</div>
<div class="">Best wishes,</div>
<div class="">JM</div>
<div class=""><br class="">
</div>
<div class="">
<div class=""><br class="">
<blockquote type="cite" class="">
<div class="">On 15 Sep 2020, at 11:53, Patrick Wiegel <<a href="mailto:patrick.wiegel@sport.uni-freiburg.de" class="">patrick.wiegel@sport.uni-freiburg.de</a>> wrote:</div>
<br class="x_Apple-interchange-newline">
<div class="">
<div class="">
<div class="" style="word-wrap:break-word; line-break:after-white-space">Dear Jan-Mathijs,
<div class=""><br class="">
</div>
<div class="">thanks for the note. I updated the version but the error still appears.</div>
<div class=""><br class="">
</div>
<div class="">I attached my script if that helps to understand the issue. </div>
<div class=""><br class="">
</div>
<div class="">Best, Patrick</div>
<div class=""><br class="">
</div>
<div class=""></div>
</div>
<div class="" style="word-wrap:break-word; line-break:after-white-space">
<div class=""></div>
<div class=""><br class="">
</div>
<div class=""><br class="">
<div class="">
<div class="" style="letter-spacing:normal; text-align:start; text-indent:0px; text-transform:none; white-space:normal; word-spacing:0px; word-wrap:break-word; line-break:after-white-space">
<b class="">Patrick Wiegel</b><br class="">
<font color="#680823" class="">Department of Sport and Sport Science</font>
<div class=""><br class="">
University of Freiburg <br class="">
Sandfangweg 4<br class="">
79117 Freiburg i. Br . <br class="">
<br class="">
<div class="">phone: +49 (0)761/ 203-4550<br class="">
<a href="mailto:patrick.wiegel@sport.uni-freiburg.de" class="">email: patrick.wiegel@sport.uni-freiburg.de</a><br class="">
web: <a href="http://www.sport.uni-freiburg.de/" class="">www.sport.uni-freiburg.de</a></div>
</div>
</div>
</div>
<div class=""><br class="">
<blockquote type="cite" class="">
<div class="">Am 15.09.2020 um 11:15 schrieb Schoffelen, J.M. (Jan Mathijs) <<a href="mailto:jan.schoffelen@donders.ru.nl" class="">jan.schoffelen@donders.ru.nl</a>>:</div>
<br class="x_x_Apple-interchange-newline">
<div class="">
<div class="" style="word-wrap:break-word; line-break:after-white-space">Dear Patrick,
<div class=""><br class="">
</div>
<div class="">Just to be sure: can you get the latest release version of the code and try whether this error persists (e.g. <a href="http://github.com/fieldtrip/fieldtrip/releases/tag/20200911" class="">http://github.com/fieldtrip/fieldtrip/releases/tag/20200911</a>)?
The reason I ask is that your reported line number (i.e. line 217 in ft_sourcenalasysis) that throws the error does not match the current state of the code. I’d like to be sure that this is a genuine error, or that you happen to have stumbled upon a dysfunctional
version (for which we humbly apologize :) ).</div>
<div class="">
<div class=""><br class="">
</div>
<div class="">Best wishes,</div>
<div class="">Jan-Mathijs</div>
<div class=""><br class="">
</div>
<div class=""><br class="">
<blockquote type="cite" class="">
<div class="">On 15 Sep 2020, at 10:55, Patrick Wiegel <<a href="mailto:patrick.wiegel@sport.uni-freiburg.de" class="">patrick.wiegel@sport.uni-freiburg.de</a>> wrote:</div>
<br class="x_x_Apple-interchange-newline">
<div class="">
<div class="" style="word-wrap:break-word; line-break:after-white-space">Dear Fieldtrip community,
<div class=""><br class="">
</div>
<div class="">I am a PhD student from Germany and I am working with EEG data. I would like to do Beamformer source analyses on power data. </div>
<div class=""><br class="">
</div>
<div class="">I don’t have individual MRIs or related electrode positions available, so I am taking the standard MRI and BEM headmodel from the fieldtrip templates. Doing the source_analyses, I am getting an error message. Can anyone tell me if I missed something
and what the reason for that error is? The error appears when running the last part of the script ft_sourceanalyses:</div>
<div class=""><br class="">
</div>
<div class=""><br class="">
</div>
<div class=""><br class="">
</div>
<div class="">
<div class="">the input is freq data with 64 channels, 1 frequencybins and no timebins</div>
<div class="">Undefined function or variable 'fieldname'.</div>
<div class=""><br class="">
</div>
<div class="">Error in ft_checkconfig (line 307)</div>
<div class=""> for i=1:length(fieldname)</div>
<div class=""><br class="">
</div>
<div class="">Error in ft_sourceanalysis (line 217)</div>
<div class="">cfg = ft_checkconfig(cfg, 'createtopcfg', cfg.method);</div>
<div class=""><br class="">
</div>
<div class="">Error in BEAMformer (line 116)</div>
<div class="">sourceAll = ft_sourceanalysis(cfg, frequ_all);</div>
<div class=""><br class="">
</div>
<div class=""><br class="">
</div>
</div>
<div class="">I added my code below. I would appreciate any help. I added information on my existing variables below the code.</div>
<div class=""><br class="">
</div>
<div class="">Best, Patrick</div>
<div class=""><br class="">
</div>
<div class="">
<div class="" style="margin:0px; font-size:10px; line-height:normal; font-family:Courier; color:rgb(34,139,34)">
%% import EEG data</div>
<div class="" style="margin:0px; font-size:10px; line-height:normal; font-family:Courier">
EEG_Data = eeglab2fieldtrip( EEG, <span class="" style="color:#a020f0">'raw'</span>,
<span class="" style="color:#a020f0">'none'</span> );</div>
<div class="" style="margin:0px; font-size:10px; line-height:normal; font-family:Courier; min-height:12px">
<br class="x_x_webkit-block-placeholder">
</div>
<div class="" style="margin:0px; font-size:10px; line-height:normal; font-family:Courier; color:rgb(34,139,34)">
%% define trials for frequency analyses</div>
<div class="" style="margin:0px; font-size:10px; line-height:normal; font-family:Courier">
cfg = [];</div>
<div class="" style="margin:0px; font-size:10px; line-height:normal; font-family:Courier">
cfg.trials = Indexes_correct{1, 1};</div>
<div class="" style="margin:0px; font-size:10px; line-height:normal; font-family:Courier">
cfg.toilim = [0.25 0.55];</div>
<div class="" style="margin:0px; font-size:10px; line-height:normal; font-family:Courier">
data_fed_correct = ft_redefinetrial(cfg, EEG_Data);</div>
<div class="" style="margin:0px; font-size:10px; line-height:normal; font-family:Courier; min-height:12px">
<br class="x_x_webkit-block-placeholder">
</div>
<div class="" style="margin:0px; font-size:10px; line-height:normal; font-family:Courier; min-height:12px">
<br class="x_x_webkit-block-placeholder">
</div>
<div class="" style="margin:0px; font-size:10px; line-height:normal; font-family:Courier">
cfg = [];</div>
<div class="" style="margin:0px; font-size:10px; line-height:normal; font-family:Courier">
cfg.trials = Indexes_incorrect{1, 1};</div>
<div class="" style="margin:0px; font-size:10px; line-height:normal; font-family:Courier">
cfg.toilim = [0.25 0.55];</div>
<div class="" style="margin:0px; font-size:10px; line-height:normal; font-family:Courier">
data_fed_incorrect = ft_redefinetrial(cfg, EEG_Data);</div>
<div class="" style="margin:0px; font-size:10px; line-height:normal; font-family:Courier; min-height:12px">
<br class="x_x_webkit-block-placeholder">
</div>
<div class="" style="margin:0px; font-size:10px; line-height:normal; font-family:Courier; color:rgb(34,139,34)">
%% run frequenc analyses</div>
<div class="" style="margin:0px; font-size:10px; line-height:normal; font-family:Courier">
cfg = [];</div>
<div class="" style="margin:0px; font-size:10px; line-height:normal; font-family:Courier">
cfg.method = <span class="" style="color:#a020f0">'mtmfft'</span>;</div>
<div class="" style="margin:0px; font-size:10px; line-height:normal; font-family:Courier">
cfg.output = <span class="" style="color:#a020f0">'powandcsd'</span>;</div>
<div class="" style="margin:0px; font-size:10px; line-height:normal; font-family:Courier">
cfg.tapsmofrq = 4;</div>
<div class="" style="margin:0px; font-size:10px; line-height:normal; font-family:Courier">
cfg.foilim = [25 25];</div>
<div class="" style="margin:0px; font-size:10px; line-height:normal; font-family:Courier">
frequ_correct = ft_freqanalysis(cfg, data_fed_correct);</div>
<div class="" style="margin:0px; font-size:10px; line-height:normal; font-family:Courier; min-height:12px">
<br class="x_x_webkit-block-placeholder">
</div>
<div class="" style="margin:0px; font-size:10px; line-height:normal; font-family:Courier">
cfg = [];</div>
<div class="" style="margin:0px; font-size:10px; line-height:normal; font-family:Courier">
cfg.method = <span class="" style="color:#a020f0">'mtmfft'</span>;</div>
<div class="" style="margin:0px; font-size:10px; line-height:normal; font-family:Courier">
cfg.output = <span class="" style="color:#a020f0">'powandcsd'</span>;</div>
<div class="" style="margin:0px; font-size:10px; line-height:normal; font-family:Courier">
cfg.tapsmofrq = 4;</div>
<div class="" style="margin:0px; font-size:10px; line-height:normal; font-family:Courier">
cfg.foilim = [25 25];</div>
<div class="" style="margin:0px; font-size:10px; line-height:normal; font-family:Courier">
frequ_incorrect = ft_freqanalysis(cfg, data_fed_incorrect);</div>
<div class="" style="margin:0px; font-size:10px; line-height:normal; font-family:Courier; min-height:12px">
<br class="x_x_webkit-block-placeholder">
</div>
<div class="" style="margin:0px; font-size:10px; line-height:normal; font-family:Courier">
cfg = [];</div>
<div class="" style="margin:0px; font-size:10px; line-height:normal; font-family:Courier">
cfg.method = <span class="" style="color:#a020f0">'mtmfft'</span>;</div>
<div class="" style="margin:0px; font-size:10px; line-height:normal; font-family:Courier">
cfg.output = <span class="" style="color:#a020f0">'powandcsd'</span>;</div>
<div class="" style="margin:0px; font-size:10px; line-height:normal; font-family:Courier">
cfg.tapsmofrq = 4;</div>
<div class="" style="margin:0px; font-size:10px; line-height:normal; font-family:Courier">
cfg.foilim = [25 25];</div>
<div class="" style="margin:0px; font-size:10px; line-height:normal; font-family:Courier">
frequ_all = ft_freqanalysis(cfg,EEG_Data);</div>
<div class="" style="margin:0px; font-size:10px; line-height:normal; font-family:Courier; min-height:12px">
<br class="x_x_webkit-block-placeholder">
</div>
<div class="" style="margin:0px; font-size:10px; line-height:normal; font-family:Courier; min-height:12px">
<br class="x_x_webkit-block-placeholder">
</div>
<div class="" style="margin:0px; font-size:10px; line-height:normal; font-family:Courier; color:rgb(34,139,34)">
%% load MRI and BEM templates</div>
<div class="" style="margin:0px; font-size:10px; line-height:normal; font-family:Courier; color:rgb(160,32,240)">
<span class="" style="">load(</span>'/Users/patrickwiegel/Documents/MATLAB/Scripts/2020/TF_Data/fieldtrip-20200603/template/headmodel/standard_bem.mat'<span class="" style="">)</span></div>
<div class="" style="margin:0px; font-size:10px; line-height:normal; font-family:Courier; color:rgb(160,32,240)">
<span class="" style="">load(</span>'/Users/patrickwiegel/Documents/MATLAB/Scripts/2020/TF_Data/fieldtrip-20200603/template/headmodel/standard_mri.mat'<span class="" style="">)</span></div>
<div class="" style="margin:0px; font-size:10px; line-height:normal; font-family:Courier; min-height:12px">
<br class="x_x_webkit-block-placeholder">
</div>
<div class="" style="margin:0px; font-size:10px; line-height:normal; font-family:Courier; color:rgb(34,139,34)">
%% segment mri </div>
<div class="" style="margin:0px; font-size:10px; line-height:normal; font-family:Courier">
cfg = [];</div>
<div class="" style="margin:0px; font-size:10px; line-height:normal; font-family:Courier">
cfg.write = <span class="" style="color:#a020f0">'no'</span>;</div>
<div class="" style="margin:0px; font-size:10px; line-height:normal; font-family:Courier">
[segmentedmri] = ft_volumesegment(cfg, mri);</div>
<div class="" style="margin:0px; font-size:10px; line-height:normal; font-family:Courier; min-height:12px">
<br class="x_x_webkit-block-placeholder">
</div>
<div class="" style="margin:0px; font-size:10px; line-height:normal; font-family:Courier">
disp(segmentedmri)</div>
<div class="" style="margin:0px; font-size:10px; line-height:normal; font-family:Courier; color:rgb(34,139,34)">
%% </div>
<div class="" style="margin:0px; font-size:10px; line-height:normal; font-family:Courier">
mri = ft_volumereslice(cfg, segmentedmri);</div>
<div class="" style="margin:0px; font-size:10px; line-height:normal; font-family:Courier">
display(mri)</div>
<div class="" style="margin:0px; font-size:10px; line-height:normal; font-family:Courier; min-height:12px">
<br class="x_x_webkit-block-placeholder">
</div>
<div class="" style="margin:0px; font-size:10px; line-height:normal; font-family:Courier; min-height:12px">
<br class="x_x_webkit-block-placeholder">
</div>
<div class="" style="margin:0px; font-size:10px; line-height:normal; font-family:Courier; color:rgb(34,139,34)">
%% align electrodes</div>
<div class="" style="margin:0px; font-size:10px; line-height:normal; font-family:Courier; color:rgb(160,32,240)">
<span class="" style="">load(</span>'elec_aligned'<span class="" style="">)</span></div>
<div class="" style="margin:0px; font-size:10px; line-height:normal; font-family:Courier">
elec_aligned = ft_convert_units(elec_aligned, <span class="" style="color:#a020f0">
'cm'</span>);</div>
<div class="" style="margin:0px; font-size:10px; line-height:normal; font-family:Courier; color:rgb(34,139,34)">
<span class="" style="">vol = ft_convert_units(vol, </span><span class="" style="color:#a020f0">'cm'</span><span class="" style="">);
</span>% Convert the vol to cm, because the CTF convenction is to express everything in cm.</div>
<div class="" style="margin:0px; font-size:10px; line-height:normal; font-family:Courier; color:rgb(34,139,34); min-height:12px">
<br class="x_x_webkit-block-placeholder">
</div>
<div class="" style="margin:0px; font-size:10px; line-height:normal; font-family:Courier; color:rgb(34,139,34)">
%%</div>
<div class="" style="margin:0px; font-size:10px; line-height:normal; font-family:Courier">
[headmodel, elec_aligned]=ft_prepare_vol_sens (vol,elec_aligned);</div>
<div class="" style="margin:0px; font-size:10px; line-height:normal; font-family:Courier; min-height:12px">
<br class="x_x_webkit-block-placeholder">
</div>
<div class="" style="margin:0px; font-size:10px; line-height:normal; font-family:Courier">
cfg = [];</div>
<div class="" style="margin:0px; font-size:10px; line-height:normal; font-family:Courier">
cfg.method = <span class="" style="color:#a020f0">'interactive'</span>;</div>
<div class="" style="margin:0px; font-size:10px; line-height:normal; font-family:Courier">
cfg.elec = elec_aligned;</div>
<div class="" style="margin:0px; font-size:10px; line-height:normal; font-family:Courier">
cfg.headshape = headmodel.bnd(1);</div>
<div class="" style="margin:0px; font-size:10px; line-height:normal; font-family:Courier">
elec_aligned = ft_electroderealign(cfg);</div>
<div class="" style="margin:0px; font-size:10px; line-height:normal; font-family:Courier; min-height:12px">
<br class="x_x_webkit-block-placeholder">
</div>
<div class="" style="margin:0px; font-size:10px; line-height:normal; font-family:Courier; color:rgb(34,139,34)">
%%</div>
<div class="" style="margin:0px; font-size:10px; line-height:normal; font-family:Courier; color:rgb(34,139,34)">
% construct the dipole grid in the template brain coordinates</div>
<div class="" style="margin:0px; font-size:10px; line-height:normal; font-family:Courier; color:rgb(34,139,34)">
% the negative inwardshift means an outward shift of the brain surface for inside/outside detection</div>
<div class="" style="margin:0px; font-size:10px; line-height:normal; font-family:Courier">
cfg = [];</div>
<div class="" style="margin:0px; font-size:10px; line-height:normal; font-family:Courier">
cfg.resolution = 1;</div>
<div class="" style="margin:0px; font-size:10px; line-height:normal; font-family:Courier">
cfg.tight = <span class="" style="color:#a020f0">'yes'</span>;</div>
<div class="" style="margin:0px; font-size:10px; line-height:normal; font-family:Courier">
cfg.inwardshift = -1.5;</div>
<div class="" style="margin:0px; font-size:10px; line-height:normal; font-family:Courier">
cfg.headmodel = headmodel;</div>
<div class="" style="margin:0px; font-size:10px; line-height:normal; font-family:Courier">
sourcemodel = ft_prepare_sourcemodel(cfg);</div>
<div class="" style="margin:0px; font-size:10px; line-height:normal; font-family:Courier; min-height:12px">
<br class="x_x_webkit-block-placeholder">
</div>
<div class="" style="margin:0px; font-size:10px; line-height:normal; font-family:Courier; color:rgb(34,139,34)">
%%</div>
<div class="" style="margin:0px; font-size:10px; line-height:normal; font-family:Courier">
cfg = [];</div>
<div class="" style="margin:0px; font-size:10px; line-height:normal; font-family:Courier">
cfg.method = <span class="" style="color:#a020f0">'dics'</span>;</div>
<div class="" style="margin:0px; font-size:10px; line-height:normal; font-family:Courier">
cfg.frequency = 25;</div>
<div class="" style="margin:0px; font-size:10px; line-height:normal; font-family:Courier">
cfg.sourcemodel = sourcemodel;</div>
<div class="" style="margin:0px; font-size:10px; line-height:normal; font-family:Courier">
cfg.headmodel = headmodel;</div>
<div class="" style="margin:0px; font-size:10px; line-height:normal; font-family:Courier">
cfg.elec = elec_aligned;</div>
<div class="" style="margin:0px; font-size:10px; line-height:normal; font-family:Courier">
cfg.dics.projectnoise = <span class="" style="color:#a020f0">'yes'</span>;</div>
<div class="" style="margin:0px; font-size:10px; line-height:normal; font-family:Courier">
cfg.dics.lambda = <span class="" style="color:#a020f0">'5%'</span>;</div>
<div class="" style="margin:0px; font-size:10px; line-height:normal; font-family:Courier">
cfg.dics.keepfilter = <span class="" style="color:#a020f0">'yes'</span>;</div>
<div class="" style="margin:0px; font-size:10px; line-height:normal; font-family:Courier">
cfg.dics.realfilter = <span class="" style="color:#a020f0">'yes'</span>;</div>
<div class="" style="margin:0px; font-size:10px; line-height:normal; font-family:Courier">
sourceAll = ft_sourceanalysis(cfg, frequ_all);</div>
<div class=""><br class="">
</div>
<div class=""><br class="">
</div>
<div class=""><br class="">
</div>
<div class=""><br class="">
</div>
<div class=""><br class="">
</div>
<div class="">
<div class="">sourcemodel = </div>
<div class=""><br class="">
</div>
<div class=""> struct with fields:</div>
<div class=""><br class="">
</div>
<div class=""> dim: [17 22 18]</div>
<div class=""> pos: [6732×3 double]</div>
<div class=""> unit: 'cm'</div>
<div class=""> inside: [6732×1 logical]</div>
<div class=""> cfg: [1×1 struct]</div>
</div>
<div class=""><br class="">
</div>
<div class="">
<div class=""><br class="">
</div>
<div class=""><br class="">
</div>
<div class=""><br class="">
</div>
<div class=""><br class="">
</div>
<div class="">elec_aligned = </div>
<div class=""><br class="">
</div>
<div class=""> struct with fields:</div>
<div class=""><br class="">
</div>
<div class=""> chanpos: [64×3 double]</div>
<div class=""> chantype: {64×1 cell}</div>
<div class=""> chanunit: {64×1 cell}</div>
<div class=""> elecpos: [64×3 double]</div>
<div class=""> homogeneous: [4×4 double]</div>
<div class=""> label: {1×64 cell}</div>
<div class=""> tra: [64×64 double]</div>
<div class=""> type: 'eeg1010'</div>
<div class=""> unit: 'cm'</div>
<div class=""> cfg: [1×1 struct]</div>
</div>
<div class=""><br class="">
</div>
<div class="">
<div class=""><br class="">
</div>
<div class=""><br class="">
</div>
<div class=""><br class="">
</div>
<div class=""><br class="">
</div>
<div class="">headmodel = </div>
<div class=""><br class="">
</div>
<div class=""> struct with fields:</div>
<div class=""><br class="">
</div>
<div class=""> bnd: [1×3 struct]</div>
<div class=""> cond: [0.3300 0.0041 0.3300]</div>
<div class=""> mat: [64×3000 double]</div>
<div class=""> type: 'dipoli'</div>
<div class=""> unit: 'cm'</div>
<div class=""> skin_surface: 1</div>
<div class=""> inner_skull_surface: 3</div>
<div class=""> source: 3</div>
</div>
<div class=""><br class="">
</div>
<div class=""><br class="">
</div>
</div>
<div class="">
<div class="" style="letter-spacing:normal; text-align:start; text-indent:0px; text-transform:none; white-space:normal; word-spacing:0px; word-wrap:break-word; line-break:after-white-space">
<b class="">Patrick Wiegel</b><br class="">
<font color="#680823" class="">Department of Sport and Sport Science</font>
<div class=""><br class="">
University of Freiburg <br class="">
Sandfangweg 4<br class="">
79117 Freiburg i. Br . <br class="">
<br class="">
<div class="">phone: +49 (0)761/ 203-4550<br class="">
<a href="mailto:patrick.wiegel@sport.uni-freiburg.de" class="">email: patrick.wiegel@sport.uni-freiburg.de</a><br class="">
web: <a href="http://www.sport.uni-freiburg.de/" class="">www.sport.uni-freiburg.de</a></div>
</div>
</div>
</div>
<br class="">
</div>
_______________________________________________<br class="">
fieldtrip mailing list<br class="">
<a href="https://mailman.science.ru.nl/mailman/listinfo/fieldtrip" class="">https://mailman.science.ru.nl/mailman/listinfo/fieldtrip</a><br class="">
<a href="https://doi.org/10.1371/journal.pcbi.1002202" class="">https://doi.org/10.1371/journal.pcbi.1002202</a><br class="">
</div>
</blockquote>
</div>
<br class="">
</div>
</div>
_______________________________________________<br class="">
fieldtrip mailing list<br class="">
<a href="https://mailman.science.ru.nl/mailman/listinfo/fieldtrip" class="">https://mailman.science.ru.nl/mailman/listinfo/fieldtrip</a><br class="">
<a href="https://doi.org/10.1371/journal.pcbi.1002202" class="">https://doi.org/10.1371/journal.pcbi.1002202</a><br class="">
</div>
</blockquote>
</div>
<br class="">
</div>
</div>
</div>
<span id="x_cid:F371A058D37F3348AB9B7D334168793B@local" class=""><BEAMformer.m></span>_______________________________________________<br class="">
fieldtrip mailing list<br class="">
<a href="https://mailman.science.ru.nl/mailman/listinfo/fieldtrip" class="">https://mailman.science.ru.nl/mailman/listinfo/fieldtrip</a><br class="">
<a href="https://doi.org/10.1371/journal.pcbi.1002202" class="">https://doi.org/10.1371/journal.pcbi.1002202</a><br class="">
</div>
</blockquote>
</div>
<br class="">
</div>
</div>
_______________________________________________<br class="">
fieldtrip mailing list<br class="">
<a href="https://mailman.science.ru.nl/mailman/listinfo/fieldtrip" class="">https://mailman.science.ru.nl/mailman/listinfo/fieldtrip</a><br class="">
<a href="https://doi.org/10.1371/journal.pcbi.1002202" class="">https://doi.org/10.1371/journal.pcbi.1002202</a><br class="">
</div>
</blockquote>
</div>
<br class="">
</div>
</div>
</div>
</div>
</div>
</body>
</html>