<html 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=utf-8"><meta name=Generator content="Microsoft Word 15 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
{font-family:Helvetica;
panose-1:2 11 5 4 2 2 2 2 2 4;}
@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;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:#954F72;
text-decoration:underline;}
.MsoChpDefault
{mso-style-type:export-only;}
@page WordSection1
{size:612.0pt 792.0pt;
margin:70.85pt 70.85pt 70.85pt 70.85pt;}
div.WordSection1
{page:WordSection1;}
--></style></head><body lang=NL link=blue vlink="#954F72"><div class=WordSection1><p class=MsoNormal>Dear Hamed, </p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>You can use ft_select data with cfg.latency </p><p class=MsoNormal>See</p><p class=MsoNormal><a href="http://www.fieldtriptoolbox.org/reference/ft_selectdata">http://www.fieldtriptoolbox.org/reference/ft_selectdata</a> </p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>best </p><p class=MsoNormal>Conny</p><p class=MsoNormal><o:p> </o:p></p><div style='mso-element:para-border-div;border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0cm 0cm 0cm'><p class=MsoNormal style='border:none;padding:0cm'><b>Van: </b><a href="mailto:hamedtaheri@yahoo.com">Hamed Taheri</a><br><b>Verzonden: </b>woensdag 20 september 2017 20:12<br><b>Aan: </b><a href="mailto:fieldtrip@science.ru.nl">fieldtrip@science.ru.nl</a><br><b>Onderwerp: </b>[FieldTrip] Splitting EEG</p></div><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal><span style='font-size:10.0pt;font-family:"Helvetica",sans-serif'>Hello Fieldtrip users,<o:p></o:p></span></p><div><p class=MsoNormal><span style='font-size:10.0pt;font-family:"Helvetica",sans-serif'><o:p> </o:p></span></p></div><div><p class=MsoNormal><span style='font-size:10.0pt;font-family:"Helvetica",sans-serif'>I have a continues EEG data ( 80 seconds) and I would like to analyze some part of it.<o:p></o:p></span></p></div><div><p class=MsoNormal><span style='font-size:10.0pt;font-family:"Helvetica",sans-serif'>For instance, I want to analyse seconds 20 to 25 ( 5 seconds).<o:p></o:p></span></p></div><div><p class=MsoNormal><span style='font-size:10.0pt;font-family:"Helvetica",sans-serif'>Would you please let me know how can I select my times of interest.<o:p></o:p></span></p></div><div><p class=MsoNormal><span style='font-size:10.0pt;font-family:"Helvetica",sans-serif'>I've written a simple code but I don't know how can I split the data. <o:p></o:p></span></p></div><div><p class=MsoNormal><span style='font-size:10.0pt;font-family:"Helvetica",sans-serif'><o:p> </o:p></span></p></div><p class=MsoNormal><span style='font-size:10.0pt;font-family:"Helvetica",sans-serif'>cfg = [];<br>cfg.dataset = '........ .eeg';<br>data_org = ft_preprocessing(cfg); %Original Data<br><br>% Step1: Filtering Row Data<br>cfg = [];<br>cfg.bpfilter = 'yes';<br>cfg.bpfreq = [1 30];<br>data_Filtered = ft_preprocessing(cfg,data_org); <o:p></o:p></span></p><p class=MsoNormal><o:p> </o:p></p></div></body></html>