<div dir="ltr">Hello All,<div><br></div><div>I have 8 continuous files that I process with: </div><div>pop_select() to remove ground, etc. channels</div><div>pop_editset() to add channel locations</div><div>pop_eegfiltnew() 2-50Hz</div><div><span style="font-family:courier;font-size:10px;color:rgb(0,0,0)"><br></span></div><div><span style="font-family:courier;font-size:10px;color:rgb(0,0,0)">EEG = pop_rejcont(EEG, </span><span style="color:rgb(178,69,243);font-family:courier;font-size:10px">'elecrange'</span><span style="font-family:courier;font-size:10px;color:rgb(0,0,0)">,[1:58] ,</span><span style="color:rgb(178,69,243);font-family:courier;font-size:10px">'freqlimit'</span><span style="font-family:courier;font-size:10px;color:rgb(0,0,0)">,[20 40],</span><span style="color:rgb(178,69,243);font-family:courier;font-size:10px">'threshold'</span><span style="font-family:courier;font-size:10px;color:rgb(0,0,0)">,10,</span><span style="color:rgb(178,69,243);font-family:courier;font-size:10px">'epochlength'</span><span style="font-family:courier;font-size:10px;color:rgb(0,0,0)">,0.5,</span><span style="color:rgb(178,69,243);font-family:courier;font-size:10px">'contiguous'</span><span style="font-family:courier;font-size:10px;color:rgb(0,0,0)">,4,</span><span style="color:rgb(178,69,243);font-family:courier;font-size:10px">'addlength'</span><span style="font-family:courier;font-size:10px;color:rgb(0,0,0)">,0.25,</span><span style="color:rgb(178,69,243);font-family:courier;font-size:10px">'taper'</span><span style="font-family:courier;font-size:10px;color:rgb(0,0,0)">,</span><span style="color:rgb(178,69,243);font-family:courier;font-size:10px">'hamming'</span><span style="font-family:courier;font-size:10px;color:rgb(0,0,0)">);</span><br></div><div><p style="margin:0px;font-size:10px;line-height:normal;font-family:courier;color:rgb(178,69,243)"><span style="color:rgb(0,0,0)"><br></span></p><p style="margin:0px;font-size:10px;line-height:normal;font-family:courier;color:rgb(178,69,243)"><span style="color:rgb(0,0,0)">then...</span></p></div><div><div>EEG = pop_epoch( EEG, {  'keyboard0'  }, [-5  20], 'newname', 'CNT file epochs', 'epochinfo', 'yes');</div><div>pop_epoch():15 epochs selected</div><div>Epoching...</div><div>pop_epoch():15 epochs generated</div><div>eeg_checkset: found empty values for field 'urevent'</div><div>              filling with values of other events in the same epochs</div><div>pop_epoch(): checking epochs for data discontinuity</div><div>Error using pop_select (line 217)</div><div>Error: dataset is empty</div><div><br></div><div>Error in pop_epoch (line 373)</div><div><span class="gmail-Apple-tab-span" style="white-space:pre">             </span>EEG = pop_select(EEG, 'notrial', indexepoch);</div></div><div><br></div><div><span style="color:rgb(0,0,0)">This works fine for 7 of the files. On the last one, pop_rejcont() (I assume) is removing the keyboard markers that I added to the file in NeuroScan to mark the onset of movement (epoch). (There are 15 keyboard0 markers in each .cnt file).</span></div><div><font color="#000000"><br></font></div><div><font color="#000000">I tried unselecting (many) marked areas around the keyboard0 markers, thinking that they overlapped with rejected 'epochs', to no avail.</font></div><div><font color="#000000">pop_rejcont() has been very helpful in removing movement artifacts from my data. I hope I can get it to work on this file (and future files).</font></div><div><font color="#000000"><br></font></div><div><font color="#000000">Any suggestions?</font></div><div><div><br></div><div>Thanks,</div><div>John</div>-- <br><div class="gmail_signature">Sent from a MacBook Pro<br></div>
</div></div>