[Eeglablist] frames and epochlim in newtimef

Makoto Miyakoshi mmiyakoshi at ucsd.edu
Thu Aug 21 20:39:39 PDT 2014


Dear Ramon,

I've never tried 'epochlim'... could you try the code?

Makoto




On Thu, Aug 21, 2014 at 8:10 AM, Omar Mian <omian88 at gmail.com> wrote:

> Hi,
>
> I'm having a bit of difficulty fully understanding the use of 'frames' and
> 'epochlim' in newtimef.
>
> My assumption is that frames should always equal
> length([epochlim(1):1000/srate:epochlim(2)])
> I haven't looked through the newtimef code, but I assume this would be
> necessary to properly define the location of the zero time (time locking
> event) within the epoch.
>
> If my assumption is correct, I have two main points of confusion.
>
> 1. The documentation states that 'frames' is ignored for 2D and 3D data (I
> assume because frames should now be defined by the dimensions of the
> array). However, this does not seem to be the case. The following two
> segments of code (differing only in the frames parameter) produce different
> output frequency bins, even though they both use 2D data with the same
> dimensions.
>
> cycles = 0; currsig = rand(2001,5); frames = 2001; epochlim = [-1000
> 1000]; srate = 1000;
> [ersp,itc,powbase,times,freqs]=
> newtimef(currsig,frames,epochlim,srate,cycles);
>
> cycles = 0; currsig = rand(2001,5); frames = 501; epochlim = [-1000 1000];
> srate = 1000;
> [ersp,itc,powbase,times,freqs]=
> newtimef(currsig,frames,epochlim,srate,cycles);
>
>
> 2. If I specify an epochlim that has a time range smaller than the epoch,
> newtimef still runs without producing an error. But in this case, how does
> it know where the time locking event is within the epoch?
>
> cycles = 0; currsig = rand(2001,5); frames = 2000; epochlim = [-500 500];
> srate = 1000;
> [ersp,itc,powbase,times,freqs]=
> newtimef(currsig,frames,epochlim,srate,cycles);
>
> Can anyone clarify these issues for me?
>
> Thanks
>
> Omar
>
> _______________________________________________
> 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
>



-- 
Makoto Miyakoshi
Swartz Center for Computational Neuroscience
Institute for Neural Computation, University of California San Diego
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://sccn.ucsd.edu/pipermail/eeglablist/attachments/20140821/57272203/attachment.html>


More information about the eeglablist mailing list