[Eeglablist] systematically deleting data

Brittany Alperin balperin07 at gmail.com
Sun Nov 2 09:13:11 PST 2014


Hi Steve

Thanks for the response. I ended up using EEG.xmax which seems to work perfectly. I can use that instead of inputting a number in pop_select in both the GUI and command line. 

Brittany

> On Nov 2, 2014, at 1:01 AM, Stephen Politzer-Ahles <spa268 at nyu.edu> wrote:
> 
> Hello Brittany,
> 
> EEG.times(end) should give you the duration of your file (specifically, the latency of the very last sample). I don't think you can put a variable like that in pop_select (I might be wrong, though), but you could do EEG.times(end) at the command line to see the duration, and then put that duration into pop_select. Alternatively, you could use the command-line version of pop_select rather than the GUI version; that would allow you to put a variable length there.
> 
> Best,
> Steve
> 
> 
> 
> Stephen Politzer-Ahles
> New York University, Abu Dhabi
> Neuroscience of Language Lab
> http://www.nyu.edu/projects/politzer-ahles/
> 
>> On Sat, Nov 1, 2014 at 2:22 AM, Brittany Alperin <balperin07 at gmail.com> wrote:
>> Hello
>> 
>> I want to cut all of my datasets down to just include the last 600 seconds and I also want to write some code to automate this.
>> 
>> Is there a way I can find out the length without manually plotting the data to find out how long the file is? I assume I'll use the select data function (pop_select), but all I know how to do is put in actual numerical values. Using this method I would have to plot each dataset, find out the length, and subtract 600 seconds from that, which is a bit tedious and wouldn't allow me to automate it.
>> 
>> Basically, is there a Matlab function that will tell me how many seconds long the file is? Can you enter something other than numbers in the pop_select window?\
>> 
>> Thanks,
>> Brittany
>> 
>> _______________________________________________
>> Eeglablist page: http://sccn.ucsd.edu/eeglab/eeglabmail.html
>> To unsubscribe, send an empty email to eeglablist-unsubscribe at sccn.ucsd.edu
>> For digest mode, send an email with the subject "set digest mime" to eeglablist-request at sccn.ucsd.edu
> 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://sccn.ucsd.edu/pipermail/eeglablist/attachments/20141102/3dff5e37/attachment.html>


More information about the eeglablist mailing list