<div dir="ltr">Dear Dritan,<div><br></div><div>Hmm your explanation makes sense. I was thinking the similar possibility, that is, if your SOA is exact 4 sec, then [-4 0] and [0 4] should actually show the same plot...</div><div>Anyways, if you figured it out that's great.</div><div><br></div><div>Makoto</div></div><br><div class="gmail_quote"><div dir="ltr">On Fri, Jul 27, 2018 at 6:04 PM Dritan Nikolla <<a href="mailto:dritannikolla@yahoo.com">dritannikolla@yahoo.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div style="font-family:Helvetica Neue,Helvetica,Arial,sans-serif;font-size:13px"><div style="font-family:Helvetica Neue,Helvetica,Arial,sans-serif;font-size:13px"><div><div>Hi Makoto,</div></div><div><br></div><div>There is a 5 to 7 seconds (random) interstimulus interval, or SOA as you term it. I am thinking that the error I am getting is not actually an error but an artefact of the viewing platform. An epoched set, when displayed on screen with 0 to -4 time segment, it is possible that the event at time 0 is not displayed on screen with right epoch (which should be at the far end, the right side of the screen) but it displays as left with the following epoch. I think this is causing the confusion.</div><div><br></div><div>Best,</div><div>Dritan</div>
        <div><br></div><div><br></div>
        
        </div><div id="m_-5623875895924110076yahoo_quoted_2958069520" class="m_-5623875895924110076yahoo_quoted">
            <div style="font-family:'Helvetica Neue',Helvetica,Arial,sans-serif;font-size:13px;color:#26282a">
                
                <div>
                    On Friday, 27 July 2018, 23:45:55 BST, Makoto Miyakoshi <<a href="mailto:mmiyakoshi@ucsd.edu" target="_blank">mmiyakoshi@ucsd.edu</a>> wrote:
                </div>
                <div><br></div>
                <div><br></div>
                <div><div id="m_-5623875895924110076yiv3628757284"><div><div dir="ltr">Dear Dritan,<div><br clear="none"></div><div><span style="font-family:arial,sans-serif;font-size:12.8px;background-color:rgb(255,255,255);text-decoration-color:initial;float:none;display:inline">> I found that both codes above epoch from event to 4 second after the event and I want to epoch 4 seconds before.</span><br clear="none"></div><div><br clear="none"></div><div>What is your SOA (stimulus onset asynchrony, which is the interval from stimulus offset to the next stimulus onset)?</div><div><br clear="none"></div><div>Makoto</div><br clear="none"><div class="m_-5623875895924110076yiv3628757284gmail_quote"><div class="m_-5623875895924110076yiv3628757284yqt1433346445" id="m_-5623875895924110076yiv3628757284yqt66024"><div dir="ltr">On Thu, Jul 19, 2018 at 3:35 AM Dritan Nikolla <<a rel="nofollow" shape="rect" href="mailto:dritannikolla@yahoo.com" target="_blank">dritannikolla@yahoo.com</a>> wrote:<br clear="none"></div><blockquote class="m_-5623875895924110076yiv3628757284gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div style="font-family:Helvetica Neue,Helvetica,Arial,sans-serif;font-size:13px"><span><span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:12.800000190734863px">Hi all,</span></span><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:12.800000190734863px"><br clear="none"></div><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:12.800000190734863px">I am trying to epoch from 4 seconds before an event up to the event. the code I am using is this:</div><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:12.800000190734863px"><br clear="none"></div><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:12.800000190734863px"><p style="margin:0px;font-stretch:normal;font-size:10px;line-height:normal;font-family:Courier">EEG = pop_epoch( EEG, triggers, [0  -4], <span style="color:rgb(178,69,243)">'newname'</span>, sprintf(<span style="color:rgb(178,69,243)">'epoch_%s'</span>, files(index).name), <span style="color:rgb(178,69,243)">'epochinfo'</span>, <span style="color:rgb(178,69,243)">'yes'</span>);</p><p style="margin:0px;font-stretch:normal;font-size:12px;line-height:normal;font-family:Courier;min-height:14px"><br clear="none"></p><p style="margin:0px;font-stretch:normal;font-size:12px;line-height:normal;font-family:Courier;min-height:14px">I also tried this:</p><p style="margin:0px;font-stretch:normal;font-size:12px;line-height:normal;font-family:Courier;min-height:14px"><br clear="none"></p><p style="margin:0px;font-stretch:normal;font-size:10px;line-height:normal;font-family:Courier">EEG = pop_epoch( EEG, triggers, [-4  0], <span style="color:rgb(178,69,243)">'newname'</span>, sprintf(<span style="color:rgb(178,69,243)">'epoch_%s'</span>, files(index).name), <span style="color:rgb(178,69,243)">'epochinfo'</span>, <span style="color:rgb(178,69,243)">'yes'</span>);</p><p style="margin:0px;font-stretch:normal;font-size:12px;line-height:normal;font-family:Courier;min-height:14px"></p><p style="margin:0px;font-stretch:normal;font-size:12px;line-height:normal;font-family:Courier;min-height:14px">triggers is a cell array: </p><p style="margin:0px;font-stretch:normal;font-size:12px;line-height:normal;font-family:Courier;min-height:14px"><span style="color:rgb(37,153,45);font-size:10px"><br clear="none"></span></p><p style="margin:0px;font-stretch:normal;font-size:12px;line-height:normal;font-family:Courier;min-height:14px"><span style="color:rgb(37,153,45);font-size:10px">  </span><span style="color:rgb(37,153,45);font-size:10px">triggers = {'Center_Right_Right' 'Center_Right_Left' 'Center_Left_Right' 'Center_Left_Left'...</span></p><p style="margin:0px;font-stretch:normal;font-size:10px;line-height:normal;font-family:Courier;color:rgb(37,153,45)">              'L_Right_Right' 'L_Right_Left' 'R_Right_Right' 'R_Right_Left' 'L_Left_Right'...</p><p style="margin:0px;font-stretch:normal;font-size:10px;line-height:normal;font-family:Courier;color:rgb(37,153,45)">              'L_Left_Left' 'R_Left_Right' 'R_Left_Left' 'CenterEmpty_Right'       'CenterEmpty_Left'...</p><p style="margin:0px;font-stretch:normal;font-size:10px;line-height:normal;font-family:Courier;color:rgb(37,153,45)">              'RightEmpty_Right' 'RightEmpty_Left' 'Left_Empty_Right' 'Left_Empty_Left'};</p></div><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:12.800000190734863px">The algorithm works fine, no errors, however, when I checked the data manually I found that both codes above epoch from event to 4 second after the event and I want to epoch 4 seconds before. What am I doing wrong?</div><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:12.800000190734863px"><br clear="none"></div><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:12.800000190734863px">Thank you very much,</div><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:12.800000190734863px">Dritan</div><div style="font-family:Helvetica Neue,Helvetica,Arial,sans-serif;font-size:13px"></div></div></div>_______________________________________________<br clear="none">
Eeglablist page: <a rel="nofollow" shape="rect" href="http://sccn.ucsd.edu/eeglab/eeglabmail.html" target="_blank">http://sccn.ucsd.edu/eeglab/eeglabmail.html</a><br clear="none">
To unsubscribe, send an empty email to <a rel="nofollow" shape="rect" href="mailto:eeglablist-unsubscribe@sccn.ucsd.edu" target="_blank">eeglablist-unsubscribe@sccn.ucsd.edu</a><br clear="none">
For digest mode, send an email with the subject "set digest mime" to <a rel="nofollow" shape="rect" href="mailto:eeglablist-request@sccn.ucsd.edu" target="_blank">eeglablist-request@sccn.ucsd.edu</a></blockquote></div></div><br clear="all"><div><br clear="none"></div>-- <br clear="none"><div class="m_-5623875895924110076yiv3628757284gmail_signature" dir="ltr"><div dir="ltr">Makoto Miyakoshi<br clear="none">Swartz Center for Computational Neuroscience<br clear="none">Institute for Neural Computation, University of California San Diego<br clear="none"></div></div></div></div></div></div>
            </div>
        </div></div></div></blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature" data-smartmail="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>