<div dir="ltr">Dear Archana,<div><br></div><div>Sorry for being unable to give you a timely response.</div><div>I did not understand the question. If you want to limit the epoch length, you can do so by changing the epoch length. Alternatively, you can compute the long epoch ERSP and crop the results to the desired time window. Does this answer to your question?</div><div><br></div><div>> I have 3D inuput data : Sub x Time x Trial. Am I right?<br></div><div><br></div><div>Yes.</div><div><br></div><div>Makoto</div><div class="gmail_extra"><br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">On Thu, Sep 3, 2015 at 11:47 PM, Archana Singh <<a href="mailto:sine.arc@gmail.com">sine.arc@gmail.com</a>> wrote:<br>><br>> Hi,<br>><br>> I wonder if there there were any responses to this question, which came in my search on how to specify 'epochlim' in newtimef(). <br>> I am also trying to figure if I could extract only a part of the epoch for the TF decomposition, something like what is done by 'tlimits' in pop_newtimef() function.<br>><br>> According to the help document of newtimef() epochlim (see below), I must specify the epoch time range of the original epoched data. I have 3D inuput data : Sub x Time x Trial. Am I right?<br>> Thanks for your suggestions if you have any.<br>><br>> % epochlim = [mintime maxtime] (ms). Note that these are the time limits<br>> % of the data epochs themselves, NOT A SUB-WINDOW TO EXTRACT </blockquote><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"> FROM THE EPOCHS as is the case for pop_newtimef(). {[-1000 2000]}<br>><br>><br>><br>> Archana <div class="gmail_extra"><br><div class="gmail_quote"><div><div class="h5">On Fri, Aug 22, 2014 at 12:10 AM, Omar Mian <span dir="ltr"><<a href="mailto:omian88@gmail.com" target="_blank">omian88@gmail.com</a>></span> wrote:<br></div></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div><div class="h5"><div dir="ltr">Hi,<div><br></div><div>I'm having a bit of difficulty fully understanding the use of 'frames' and 'epochlim' in newtimef.</div><div><br></div><div>My assumption is that frames should always equal length([epochlim(1):1000/srate:epochlim(2)])</div>
<div>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.</div><div><br></div><div>If my assumption is correct, I have two main points of confusion.</div>
<div><br></div><div>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.</div>
<div><br></div><div>cycles = 0; currsig = rand(2001,5); frames = 2001; epochlim = [-1000 1000]; srate = 1000; </div><div>[ersp,itc,powbase,times,freqs]= newtimef(currsig,frames,epochlim,srate,cycles); <br></div><div><div>
<br></div><div><div>cycles = 0; currsig = rand(2001,5); frames = 501; epochlim = [-1000 1000]; srate = 1000; </div><div>[ersp,itc,powbase,times,freqs]= newtimef(currsig,frames,epochlim,srate,cycles); </div></div><div><br>
</div></div><div><br></div><div>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?</div>
<div><br></div><div>cycles = 0; currsig = rand(2001,5); frames = 2000; epochlim = [-500 500]; srate = 1000; </div><div>[ersp,itc,powbase,times,freqs]= newtimef(currsig,frames,epochlim,srate,cycles); </div><div><br></div>
<div>Can anyone clarify these issues for me?</div><div><br></div><div>Thanks</div><span><font color="#888888"><div><br></div><div>Omar</div></font></span></div>
<br></div></div><span class="">_______________________________________________<br>
Eeglablist page: <a href="http://sccn.ucsd.edu/eeglab/eeglabmail.html" rel="noreferrer" target="_blank">http://sccn.ucsd.edu/eeglab/eeglabmail.html</a><br>
To unsubscribe, send an empty email to <a href="mailto:eeglablist-unsubscribe@sccn.ucsd.edu" target="_blank">eeglablist-unsubscribe@sccn.ucsd.edu</a><br>
For digest mode, send an email with the subject "set digest mime" to <a href="mailto:eeglablist-request@sccn.ucsd.edu" target="_blank">eeglablist-request@sccn.ucsd.edu</a><br></span></blockquote></div><br></div>
<br>_______________________________________________<br>
Eeglablist page: <a href="http://sccn.ucsd.edu/eeglab/eeglabmail.html" rel="noreferrer" target="_blank">http://sccn.ucsd.edu/eeglab/eeglabmail.html</a><br>
To unsubscribe, send an empty email to <a href="mailto:eeglablist-unsubscribe@sccn.ucsd.edu">eeglablist-unsubscribe@sccn.ucsd.edu</a><br>
For digest mode, send an email with the subject "set digest mime" to <a href="mailto:eeglablist-request@sccn.ucsd.edu">eeglablist-request@sccn.ucsd.edu</a><br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr">Makoto Miyakoshi<br>Swartz Center for Computational Neuroscience<br>Institute for Neural Computation, University of California San Diego<br></div></div>
</div></div>