<div dir="ltr">Hi Fieldtrip community,<br><div><br></div><div>I'm new to fieldtrip and am having difficulties trying to follow the <a href="https://www.fieldtriptoolbox.org/tutorial/minimumnormestimate/">MNE tutorial</a> to do source analysis for EEG data. Similar to the tutorial, I did the following to compute my source using a precomputed leadfield:<br><br></div><blockquote style="margin:0 0 0 40px;border:none;padding:0px"><div><font color="#0000ff">cfg               = [];</font></div><div><font color="#0000ff"><br></font></div><div><font color="#0000ff">cfg.sourcemodel   = sourcemodel_and_leadfield;</font></div><div><font color="#0000ff">cfg.headmodel     = headmodel;</font></div><div><font color="#0000ff">cfg.elec = elec_realigned;</font></div><div><font color="#0000ff"><br></font></div><div><font color="#0000ff">cfg.method        = 'mne';</font></div><div><font color="#0000ff">cfg.mne.prewhiten = 'yes';</font></div><div><font color="#0000ff">cfg.mne.lambda    = 3;</font></div><div><font color="#0000ff">cfg.mne.scalesourcecov = 'yes';</font></div><div><font color="#0000ff"><br></font></div><div><font color="#0000ff">sourceL = ft_sourceanalysis(cfg, tlckL);</font></div><div><font color="#0000ff">sourceR = ft_sourceanalysis(cfg, tlckR);</font></div></blockquote><div><br></div><div>Running the above give me the following output with no errors:</div><div><br></div><blockquote style="margin:0 0 0 40px;border:none;padding:0px"><div><font color="#0000ff">the input is timelock data with 64 channels and 2432 timebins</font></div><div><font color="#0000ff">the call to "ft_selectdata" took 0 seconds</font></div><div><font color="#0000ff">using precomputed leadfields</font></div><div><font color="#0000ff">the call to "ft_selectdata" took 0 seconds</font></div><div><font color="#0000ff">estimating current density distribution for repetition 1</font></div><div><font color="#0000ff">using precomputed leadfields</font></div><div><font color="#0000ff">computing the solution where the noise covariance is used for regularisation</font></div><div><font color="#0000ff">prewhitening the leadfields using the noise covariance</font></div><div><font color="#0000ff">scaling the source covariance</font></div><div><font color="#0000ff">The input data are real-valued, assuming sensor time-series: Computing the dipole moments</font></div><div><font color="#0000ff">the call to "ft_sourceanalysis" took 1 seconds</font></div><div><font color="#0000ff">the input is timelock data with 64 channels and 2432 timebins</font></div><div><font color="#0000ff">the call to "ft_selectdata" took 0 seconds</font></div><div><font color="#0000ff">using precomputed leadfields</font></div><div><font color="#0000ff">the call to "ft_selectdata" took 0 seconds</font></div><div><font color="#0000ff">estimating current density distribution for repetition 1</font></div><div><font color="#0000ff">using precomputed leadfields</font></div><div><font color="#0000ff">computing the solution where the noise covariance is used for regularisation</font></div><div><font color="#0000ff">prewhitening the leadfields using the noise covariance</font></div><div><font color="#0000ff">scaling the source covariance</font></div><div><font color="#0000ff">The input data are real-valued, assuming sensor time-series: Computing the dipole moments</font></div><div><font color="#0000ff">the call to "ft_sourceanalysis" took 1 seconds</font></div></blockquote><div><br></div><div>However, when I looked at the sourceL and sourceR variables, I can see that each cell in the sourceL.avg.mom and sourceL.avg.noisecov variables are empty, and sourceL.avg.pow is just full of NaNs.</div><div><br></div><div>I would appreciate it if someone can give me some suggestions of what went wrong here. Thank you very much in advance!</div><div><br></div><div>Jason<br><br></div><div><br></div></div>