<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri",sans-serif;
mso-fareast-language:EN-US;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:purple;
text-decoration:underline;}
span.EmailStyle17
{mso-style-type:personal-compose;
font-family:"Calibri",sans-serif;
color:windowtext;}
.MsoChpDefault
{mso-style-type:export-only;
font-family:"Calibri",sans-serif;
mso-fareast-language:EN-US;}
@page WordSection1
{size:612.0pt 792.0pt;
margin:70.85pt 70.85pt 70.85pt 70.85pt;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="NL" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal"><span lang="EN-GB">Dear FieldTrip community,<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB">Apologies for what is likely a simple question. I have some EEG data and have calculated the global field power by using ft_globalmeanfield. I would now like to detect the peaks in the signal, and specifically to work
out the time windows around these peaks using a half peak measurement – thus, the time windows would span from the half peak value before the peak to the half peak value after the peak.
<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB">I have done this subjectively by eyeballing the data in a plot, highlighting the peak and literally just looking at where the halfway point from the trough to the peak is (and then reading that time value off of the x
axis) but this is not the right way to do such a thing :) Does anyone know if there is a FieldTrip function that can take my GFP values, find the peaks, and then calculate the windows around the peaks in a principled manner (ideally using a half peak cut off)?
I have searched the FT website, looked through the reference list (and the index) for a function, and googled, but can’t find a way that is already implemented. My matlab coding skills are not wonderful, which is why I would prefer a function already written
(if available).<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB">[For more context, the reason I am doing this is to find the time windows surrounded the peaks in GFP throughout the trial, and then to test effects of my variables of interest within those time windows. So this is to
find time windows for later analysis.]<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="mso-fareast-language:NL">Best,<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="mso-fareast-language:NL"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="mso-fareast-language:NL">Amie<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="mso-fareast-language:NL"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="mso-fareast-language:NL">-----------------------------------------------------<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="mso-fareast-language:NL">Amie Fairs<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="mso-fareast-language:NL"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="mso-fareast-language:NL">** I am mostly using another email address for my new position, so please add that to your address book. This email address will eventually expire. The new address:<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="mso-fareast-language:NL"><a href="mailto:Amie.fairs@univ-amu.fr">Amie.fairs@univ-amu.fr</a><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="mso-fareast-language:NL">**<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="mso-fareast-language:NL"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="mso-fareast-language:NL">PhD candidate<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="mso-fareast-language:NL">International Max Planck Research School for Language Sciences<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="mso-fareast-language:NL">Max Planck Institute for Psycholinguistics<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="mso-fareast-language:NL">PO Box 310 | 6500 AH Nijmegen | The Netherlands<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="mso-fareast-language:NL">Email: <a href="mailto:amie.fairs@mpi.nl">
amie.fairs@mpi.nl</a> | Phone: +31(0)243521381<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="mso-fareast-language:NL"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="FR" style="mso-fareast-language:EN-GB">Post-doctorant<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="FR" style="mso-fareast-language:EN-GB">Aix-Marseille Université<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="FR" style="mso-fareast-language:EN-GB">Laboratoire Parole et Langage (LPL) | CNRS UMR 7309 | 5 Avenue Pasteur | 13100 Aix-en-Provence<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="FR" style="mso-fareast-language:EN-GB">Email : <a href="mailto:amie.fairs@univ-amu.fr">
amie.fairs@univ-amu.fr</a><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB"><o:p> </o:p></span></p>
</div>
</body>
</html>