<span id="mailbox-conversation">Thanks Guillaume I'll definitely look into that!</span><div class="mailbox_signature">--<br>Bastien Boutonnet, Ph.D.<br>Department of Psychology<br>University of Wisonsin, Madison<br>bastienboutonnet.com<br><br>Sent from my iPhone, apologies for thumb-induced typos. </div>
<br><br><div class="gmail_quote"><p>On Sat, Mar 8, 2014 at 10:14 AM, Guillaume Rousselet <span dir="ltr"><<a href="mailto:Guillaume.Rousselet@glasgow.ac.uk" target="_blank">Guillaume.Rousselet@glasgow.ac.uk</a>></span> wrote:<br></p><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><p>Hi Bastien, 
<br>for this purpose you could try the peakfit extension from Paul Sajda.
<br>Best,
<br>Guillaume
<br><br><br>On 6 Mar 2014, at 16:35, Bastien Boutonnet <bastien.b1@gmail.com> wrote:
<br><br>> Dear all,
<br>> 
<br>> I realised that my question was probably a bit obscure and so that it needed reformulation.
<br>> 
<br>> I tried looking for a function that would pick peak amplitudes from single trials in a way where you could say pick the max (or min) value between Time-x and Time-y for each trial. I would also like if possible to preserve info about the event or at least the epoch number as I want to run a regression with peak amplitude and say RT or some continuous variable that I have for each trial. I imagine that a fairly simple script could do that but because I don’t have a great understanding of the structure of the data in MATLAB I feel like I could do with someone explaining this to me rather than try and work out a quick and dirty way to do it myself.
<br>> 
<br>> Also, I am aware that such peak detection isn’t an easy thing to do on “raw” single trials and I know that there are different methods out there to clean the data out of random noise or other EEG activity which might basically hide the peaks on some occasions. People seem to do ICA or PCA transformations, filter heavily, filter using wavelets etc. I don’t yet know which one would be the best to do (and there probably isn’t a best) but this issue aside for now, there is going to be the need for me to eventually get the peaks out of the data. For this the question I ask in the previous paragraph is likely to still hold.
<br>> 
<br>> If anyone has ideas or pointers as to how to do this, and if anyone has suggestions regarding methods to “clean” the single-trial data as well that would be greatly appreciated.
<br>> 
<br>> Thanks for your time!
<br>> 
<br>> B
<br>> 
<br>> —
<br>> Bastien Boutonnet, Ph. D.
<br>> Department of Psychology
<br>> University of Wisconsin, Madison
<br>> bastienboutonnet.com
<br>> _______________________________________________
<br>> Eeglablist page: http://sccn.ucsd.edu/eeglab/eeglabmail.html
<br>> To unsubscribe, send an empty email to eeglablist-unsubscribe@sccn.ucsd.edu
<br>> For digest mode, send an email with the subject "set digest mime" to eeglablist-request@sccn.ucsd.edu
<br><br></p></blockquote></div><br>