[Eeglablist] peaks detection

Elisa Carlino elisa.carlino at gmail.com
Thu Jul 3 14:11:52 PDT 2014

Dear all,
i have the following problem on my EEG data.
I have a noisy wave generated by an external trigger
and I need to transform this wave into squared waves
in order to use these waves as events for the
erp analysis.

I attach a jpg of my wave (first line in blu) and a set
of waves that i desire (red waves): i need
- squared waves or
- the first peak of each wave (desirable option) or
- the middle peak of each wave or
- the final peak of each wave.
With the peak I can subsequently epoch
the EEG and analyze the ERPs.

I looked at this function:
[pks,locs] =

I tried to change the values but unsuccessfully.
When I apply this function the program finds too many peaks
and not the first peak of each wave.
Is this function correct? How can I successfully apply the function?
Are there other ways to solve this problem?


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://sccn.ucsd.edu/pipermail/eeglablist/attachments/20140703/2bdf59c5/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: TriggerPeaks.jpg
Type: image/jpeg
Size: 62003 bytes
Desc: not available
URL: <http://sccn.ucsd.edu/pipermail/eeglablist/attachments/20140703/2bdf59c5/attachment.jpg>

More information about the eeglablist mailing list