<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} --></style>
</head>
<body dir="ltr">
<div id="divtagdefaultwrapper" style="font-size:12pt;color:#000000;font-family:Calibri,Helvetica,sans-serif;" dir="ltr">
Hello, 
<div><br>
</div>
<div>I have just recently updated to the latest version of FieldTrip and I ran into a probelm I have never ran into before while using ft_sourceanalysis </div>
<div><br>
</div>
<div>
<div>Reference to non-existent field 'dimord'.</div>
<div><br>
</div>
<div>Error in ft_sourceanalysis (line 788)</div>
<div>    if strcmp(data.dimord, 'chan_time')</div>
<br>
</div>
<div>in which the input was </div>
<div>
<div><br>
</div>
<div>cfg                   = [];</div>
<div>cfg.method            = 'lcmv';</div>
<div>cfg.grid              = source_model;</div>
<div>cfg.headmodel         = vol;</div>
<div>cfg.lcmv.keepfilter   = 'yes';</div>
<div>cfg.grad              = dataica.grad;</div>
<div><br>
</div>
<div>lcmvsource            = ft_sourceanalysis(cfg, timelock);</div>
<br>
</div>
<div>and the timelock analysis was performed by </div>
<div><br>
</div>
<div>
<div>cfg            = [];</div>
<div>cfg.channel     = 'meggrad';</div>
<div>cfg.covariance         = 'yes';</div>
<div>cfg.covariancewindow   = 'all';</div>
<div>cfg.vartrllength       = 2;</div>
<div>cfg.keeptrials         = 'yes';</div>
<div>timelock      = ft_timelockanalysis(cfg, dataica);</div>
<br>
</div>
<div>This was performed on MATLAB 2015b on Neuromag resting state data divided into 10s epochs </div>
<div><br>
</div>
<div>If anyone has run  into this issue or has a solution for it, let me know. </div>
<div><br>
</div>
<div>Cheers</div>
<div><br>
</div>
<div>Andrew</div>
<div><br>
</div>
</div>
</body>
</html>