<div dir="ltr"><div>Thank you for your response.</div><div><br></div><div>I wish to plotting LFP based on spike using a program that I want to create. and for the obtained the same graph as in the tutorial.</div><div><br></div>

<div>the problem is that I do not understand how the function ft_spiketriggeredaverage  computes the avererage of the LFP around the spikes,  while the spikes and LFP are recorded in the same period, and how he detect the spike?</div>
<div class="gmail_extra"><br><br><br><div dir="ltr"><div><font size="1" face="comic sans ms,sans-serif"><br></font></div><div><br></div><div><font face="'comic sans ms', sans-serif" size="1"><br>
</font></div></div>
</div></div>