Hi Julian,<br><br>by using the peakdetect2- or the findpeaks-function I get an error: <br>??? Undefined function or method 'peakdetect2' for input arguments of type 'double'<br>(I use EGI-data with 149 channels and 113 timepoints).<br>
<br>Do you have any idea, what the problem could be?<br><br>Daria<br><br><br><br><br><br><br><div class="gmail_quote">2012/10/6 Daria Laptinskaya <span dir="ltr"><<a href="mailto:daria.laptinskaya@googlemail.com" target="_blank">daria.laptinskaya@googlemail.com</a>></span><br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Many thanks-I will try to do!<br><br>Best,<br>Daria<div><div><br><br><br><div class="gmail_quote">
2012/10/5 Julian Keil <span dir="ltr"><<a href="mailto:julian.keil@gmail.com" target="_blank">julian.keil@gmail.com</a>></span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Daria,<br>
<br>
you can either use the function "min" or "max" to find the minima and maxima in your data, or you can use the "peakdetect2"-function that can be found in the "private" folder of field trip.<br>



Another function, that is quite similar to the field trip-function is the "findpeaks"-function, in which you can even set parameters how exactly you want to define your peaks.<br>
Fo the latency: all the above functions can give you the index (i.e. sample point) of your peak, if you then compare this to your time-vector, you can get the latency until the maximum.<br>
<br>
Good Luck,<br>
<br>
Julian<br>
<br>
Am 05.10.2012 um 17:10 schrieb Daria Laptinskaya:<br>
<div><div><br>
> Dear fieldtrippers,<br>
><br>
> does anyone know how I can find the peak maximum of an erp?<br>
> And how to calculate the latency until the maximum?<br>
><br>
> Timelockanalysis and the grand average of all erps are already done.<br>
><br>
> Best,<br>
> Daria<br>
><br>
><br>
</div></div>> _______________________________________________<br>
> fieldtrip mailing list<br>
> <a href="mailto:fieldtrip@donders.ru.nl" target="_blank">fieldtrip@donders.ru.nl</a><br>
> <a href="http://mailman.science.ru.nl/mailman/listinfo/fieldtrip" target="_blank">http://mailman.science.ru.nl/mailman/listinfo/fieldtrip</a><br>
<br>
<br>
_______________________________________________<br>
fieldtrip mailing list<br>
<a href="mailto:fieldtrip@donders.ru.nl" target="_blank">fieldtrip@donders.ru.nl</a><br>
<a href="http://mailman.science.ru.nl/mailman/listinfo/fieldtrip" target="_blank">http://mailman.science.ru.nl/mailman/listinfo/fieldtrip</a><br>
</blockquote></div><br>
</div></div></blockquote></div><br>