<html>
<head>
    <meta http-equiv='Content-Type' content='text/html; charset=UTF-8'>
</head>
<body>
<style>
    font{
        line-height: 1.6;
    }
    ul,ol{
        padding-left: 20px;
        list-style-position: inside;
    }
</style>
<div style = 'font-family:微软雅黑,Verdana,"Microsoft Yahei",SimSun,sans-serif;font-size:14px; line-height:1.6;'>
    <div >
    <div><span style="font-family: Arial;">Dear Sir/Madam,</span></div><div><br></div><div>
        <span style="font-family: Arial;">Is there any function in fieldtrip which could <span style="font-family: Arial; line-height: 1.6;">delete the epochs containing artifacts according to the peak to peak activity within a moving window (please see the following screenshot of the related part in one article)?</span></span></div><div><img src="cid:0567B9A6-7E3A-4DFD-868D-4BC933070B8C@mailmaster" style="max-width: unset; height: 178.605px; width: 609.444px;" naturalheight="245px" naturalwidth="836px" currentsize="19"><span style="line-height: 22.4px; font-family: Arial;"><br></span></div><div><span style="line-height: 22.4px; font-family: Arial;"><br></span></div><div><span style="font-family: Arial; line-height: 22.4px;">I know one function in ERPLAB (pop_artmwppth) could do this (https://github.com/lucklab/erplab/blob/master/pop_functions/pop_artmwppth.m). However, I didn't find a similar function in fieldtrip (neither ft_artifact_eog nor ft_artifact_threshold). Do you have any suggestions about how to do this? </span></div><div><span style="line-height: 22.4px; font-family: Arial;"> </span></div><div><span style="line-height: 22.4px; font-family: Arial;">Thank you very much. Look forward to your reply. </span></div><div><span style="line-height: 22.4px; font-family: Arial;"><br></span></div><div><span style="line-height: 22.4px; font-family: Arial;">Sincerely, </span></div><div><span style="line-height: 22.4px; font-family: Arial;">Rachel</span></div><div><span style="line-height: 22.4px;"><br></span></div>
    <div>
        <span>
            <br>
        </span>
    </div>
    <div id="ntes-pcmac-signature" style="font-family:'微软雅黑'">
        
        <div style="font-size:14px; padding: 0;  margin:0;">

        </div>
    </div>
</div><!--😀-->
</div>
</body>
</html>