<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=Windows-1252">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;">
Hi,
<div><br>
</div>
<div>I am a new FieldTrip user with advanced Matlab programming skills. I would like to use FieldTrip for analyzing multichannel local field potentials (EEG) and spike data recorded from rats.</div>
<div>As I go throughout the ‘Preprocessing and analysis of spike and local field potential data’ tutorial (<a href="http://fieldtrip.fcdonders.nl/tutorial/spikefield">http://fieldtrip.fcdonders.nl/tutorial/spikefield</a>), I get the following error message
 after calling the ft_spiketriggeredaverage function in the ‘Computing the spike triggered average LFP’ section: </div>
<div><br>
</div>
<div>
<pre class="code matlab" style="padding: 0.5em; margin-top: 0px; margin-left: -10px; border: 1px dashed rgb(204, 204, 204); overflow: hidden; font-family: Consolas, 'Andale Mono', Menlo, Monaco, monospace; background-color: rgb(247, 249, 250); white-space: pre-wrap; width: 640px; text-align: justify;"><b>staPost = ft_spiketriggeredaverage<span class="br0" style="padding: 0px; margin: 0px; color: rgb(102, 204, 102);">(</span>cfg, data_all<span class="br0" style="padding: 0px; margin: 0px; color: rgb(102, 204, 102);">)</span>;</b></pre>
<div>
<div>the input is raw data with 6 channels and 600 trials</div>
<div>Error using ft_checkconfig (line 205)</div>
<div>The field cfg.progress is not allowed</div>
<div><br>
</div>
<div><br>
</div>
<div>Error in ft_spiketriggeredaverage (line 72)</div>
<div>cfg = ft_checkconfig(cfg, 'allowed', {'timwin', 'spikechannel', 'channel',</div>
<div>'keeptrials', 'feedback', 'latency', 'trials', 'warning'});</div>
</div>
</div>
<div><br>
</div>
<div><br>
</div>
<div><br>
</div>
<div>In the ‘Computing the phases of spikes relative to the ongoing LFP ‘ section I receive the same error msg after calling the ft_spiketriggeredspectrum function.</div>
<div><b><br>
</b></div>
<div>
<div><b>stsConvol  = ft_spiketriggeredspectrum(cfg, data_all);</b></div>
<div><br>
</div>
<div>the input is raw data with 6 channels and 600 trials</div>
<div>Error using ft_checkconfig (line 205)</div>
<div>The field cfg.progress is not allowed</div>
<div><br>
</div>
<div><br>
</div>
<div>Error in ft_spiketriggeredspectrum_convol (line 135)</div>
<div>cfg = ft_checkconfig(cfg, 'allowed', {'taper', 'borderspikes', 't_ftimwin',</div>
<div>'foi', 'spikechannel', 'channel', 'taperopt',</div>
<div>'rejectsaturation','tapsmofrq', 'warning'});</div>
<div><br>
</div>
<div>Error in ft_spiketriggeredspectrum (line 106)</div>
<div>    sts = ft_spiketriggeredspectrum_convol(cfg,data);</div>
</div>
<div><br>
</div>
<div><br>
</div>
<div>Can anyone help me to understand the cause and resolving this issue?</div>
<div><br>
</div>
<div>Thank you,</div>
<div><br>
</div>
<div>LG</div>
</body>
</html>