<html dir="ltr">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" id="owaParaStyle"></style>
</head>
<body fpstyle="1" ocsi="0">
<div style="direction: ltr;font-family: Tahoma;color: #000000;font-size: 10pt;">Hi Payashi,<br>
<br>
To select epochs I would use pop_select in the form:<br>
<br>
<i>EEG=pop_select(EEG,'trial',[900:960]);</i><br>
<br>
... where the values [900:960] refer to trial/epoch indices.
<div><br>
</div>
<div>If you used the vised_marks plugin to generate the regular interval epochs there should be a field in the EEG.epoch structure named "startpnt" that represents the data point index from the continuous data where the current epoch originated. So if you wanted
 to extract all of the epochs that originated between 5 minutes and 6 minutes (between 300 and 360 seconds) in the continuous data you could use the following:</div>
<div><br>
</div>
<div><i>epoch_inds=find([EEG.epoch.startpnt]>300*EEG.srate & <span style="font-size: 10pt;">[EEG.epoch.startpnt]<360*EEG.srate);</span></i></div>
<i>EEG=pop_select(EEG,'trial',epoch_inds);<br>
</i>
<div><span style="font-size: 10pt;"><br>
</span></div>
<div><span style="font-size: 10pt;"><br>
</span></div>
<div>Let me know if this is what you need.</div>
<div><span style="font-size: 10pt;"> </span></div>
<div>James Desjardins, MA<br>
Electrophysiology Technologist<br>
Cognitive and Affective Neuroscience Lab, Psychology Department<br>
Jack and Nora Walker Centre for Lifespan Development Research<br>
Brock University<br>
500 Glenridge Ave.<br>
St. Catharines, ON, Canada L2S 3A1<br>
905-688-5550 x4676<br>
--<br>
"'Cause you never can tell What goes on down below!<br>
"This pool might be bigger Than you or I know!"<br>
<br>
McElligot's Pool<br>
Dr.Seuss 1947<br>
<br>
________________________________________<br>
From: eeglablist-bounces@sccn.ucsd.edu [eeglablist-bounces@sccn.ucsd.edu] on behalf of Payashi Garry [payashi.garry@ndcn.ox.ac.uk]<br>
Sent: August-18-14 4:46 AM<br>
To: eeglablist@sccn.ucsd.edu<br>
Subject: [Eeglablist] extracting non event related epochs<br>
<br>
Dear EEG lab list,<br>
<br>
I have resting EEG data recordings which are 2 hours in length. I wish to extract 30 one second epochs from various portions of the data. I have epoched the data using the vised marks plugin, but I am struggling to extract the desired epochs as there are no
 'events' as such to mark the data.<br>
<br>
Do you have any advice on how to go about doing this?<br>
<br>
Many thanks<br>
Best wishes<br>
Payashi<br>
<br>
****<br>
Dr Payashi Garry MB BChir FRCA<br>
Specialty Registrar in Anaesthetics and BRC Research Fellow<br>
Nuffield Department of Clinical Neurosciences<br>
John Radcliffe Hospital<br>
Oxford OX3 9DU<br>
Tel: 01865 572878<br>
<br>
<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>
</div>
</div>
</body>
</html>