<html><head></head><body bgcolor="#FFFFFF"><div>Another way of knowing sample information is to include it again in the trl definition of your trial function so that the 4th  ( any column after the first three) column reads event(i).sample.  The information will always be available in the trialinfo field of the data. <br><br>Regards,</div><div><br></div><div>Raquel<br>Sent from my iPhone</div><div><br>On Apr 26, 2012, at 4:19 AM, "Jörn M. Horschig" <<a href="mailto:jm.horschig@donders.ru.nl">jm.horschig@donders.ru.nl</a>> wrote:<br><br></div><div><span></span></div><blockquote type="cite"><div>
  
    <meta content="text/html; charset=ISO-8859-1" http-equiv="Content-Type">
  
  
    Hi Elena,<br>
    <br>
    most likely your data has trials with overlapping sample points.
    Unfortunately, the databrowser does not support this, or to be more
    specific ft_fetch_data does not support this. The reason for this is
    that a specific segment in time is defined twice in your data, and
    it is not clear what segment it is you would like to look at (due to
    filter artifacts and other preprocessing steps, the data will most
    likely have different values for the same sample points). For
    non-continuous data (already preprocessed data), it should be able
    to implement this nonetheless, but that's on our todo list. The best
    way for now is to call ft_redefinetrial and cut out the overlapping
    segments.<br>
    <br>
    You could also hack your way around this by removing
    data.sampleinfo. FieldTrip will then make up arbitrary, meaningless
    sample numbers. Keep in mind that we do not recommend this though.
    There is no way that the reconstructed sample numbers can be traced
    back to your original data! (well... if your programming skills are
    reasonable enough, it is possible, but that requires some further
    hacking, and a lot of effort). <br>
    <br>
    Best,<br>
    Jörn<br>
    <br>
    On 4/26/2012 12:04 AM, Elena Orekhova wrote:
    <blockquote cite="mid:32CC77C0C8A7AD4B9410934642608E1F25391DE8@exchccr1.neuro.gu.se" type="cite">
      <meta http-equiv="Content-Type" content="text/html;
        charset=ISO-8859-1">
      
      <div style="direction: ltr;font-family: Tahoma;color:
        #000000;font-size: 10pt;">Hi<br>
        I encounted the same problem with ft_databrowser:<br>
        <br>
        *************<br>
        fetching artifacts... Error using ft_fetch_data (line 57)<br>
        data does not contain a consistent trial definition, fetching
        data is not<br>
        possible<br>
        <br>
        Error in ft_databrowser>redraw_cb (line 1159)<br>
        art = ft_fetch_data(opt.artdata, 'begsample', begsample,
        'endsample',<br>
        endsample);<br>
        <br>
        Error in ft_databrowser (line 535)<br>
        redraw_cb(h);<br>
        ****************<br>
        <br>
        The same data works OK with <br>
        [data] = ft_rejectvisual(cfg, data)<br>
        <br>
        I have:<br>
        MacOS 10.6.8 <br>
        MATLAB 7.13.0.564 (R2011b)<br>
        <br>
        Matlab re-installation did not help in my case.<br>
        I would be grateful for any tips.<br>
        <br>
        Elena<br>
        <div style="font-family: Times New Roman; color: #000000;
          font-size: 16px">
          <hr tabindex="-1">
          <div style="direction: ltr;" id="divRpF960314"><font color="#000000" face="Tahoma" size="2"><b>From:</b>
              <a class="moz-txt-link-abbreviated" href="mailto:fieldtrip-bounces@donders.ru.nl">fieldtrip-bounces@donders.ru.nl</a>
              [<a class="moz-txt-link-abbreviated" href="mailto:fieldtrip-bounces@donders.ru.nl">fieldtrip-bounces@donders.ru.nl</a>] on behalf of Mehmet-Akif
              Coskun [<a class="moz-txt-link-abbreviated" href="mailto:mcoskun@mail.uh.edu">mcoskun@mail.uh.edu</a>]<br>
              <b>Sent:</b> Wednesday, March 07, 2012 6:55 PM<br>
              <b>To:</b> Email discussion list for the FieldTrip project<br>
              <b>Cc:</b> <a class="moz-txt-link-abbreviated" href="mailto:fieldtrip@donders.ru.nl">fieldtrip@donders.ru.nl</a><br>
              <b>Subject:</b> Re: [FieldTrip] Error -> ft_databrowser<br>
            </font><br>
          </div>
          <div>Hi Michael,<br>
            <br>
            <br>
            I have posted the question actually but I didn't hear any
            suggestions about it. The same error was posted yesterday by
            someone else. <br>
            <br>
            <br>
            just to repeat what i have replied in the other post, i
            tried many things to solve it (changed the code, run the
            databrowser code line by line, updated fieldtrip version at
            etc.), but none of them solved the problem. I started
            getting the error after I tried using parallel processing
            scripts in matlab. But as i said, i have no basis to say
            that this caused the problem. So basically, i do not know
            any scientific solution.<br>
            <br>
            <br>
            But an old school method solved the problem in my case.
            Simply i uninstalled and re-installed matlab. Never got the
            error again. You may want to try this. I have no other
            solution.<br>
            <br>
            <br>
            Mehmet<br>
            <br>
            <br>
            <br>
            <br>
            <br>
            ----- Original Message -----<br>
            From: "Epstein, Michael" <a class="moz-txt-link-rfc2396E" href="mailto:MEpstein@NKI.RFMH.ORG"><MEpstein@NKI.RFMH.ORG></a><br>
            Date: Wednesday, March 7, 2012 11:29 am<br>
            Subject: Re: [FieldTrip] Error -> ft_databrowser<br>
            To: <a class="moz-txt-link-abbreviated" href="mailto:fieldtrip@donders.ru.nl">fieldtrip@donders.ru.nl</a><br>
            <br>
            <span>
              <p>
                <style>
<!--
@font-face
        {font-family:"Cambria Math"}
@font-face
        {font-family:Calibri}
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif"}
a:link, span.MsoHyperlink
        {color:blue;
        text-decoration:underline}
a:visited, span.MsoHyperlinkFollowed
        {color:purple;
        text-decoration:underline}
pre
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:10.0pt;
        font-family:"Courier New"}
span.EmailStyle17
        {font-family:"Calibri","sans-serif";
        color:windowtext}
span.HTMLPreformattedChar
        {font-family:"Courier New"}
@page Section1
        {margin:1.0in 1.0in 1.0in 1.0in}
-->
BODY {direction: ltr;font-family: Tahoma;color: #000000;font-size: 10pt;}P {margin-top:0;margin-bottom:0;}BODY {scrollbar-base-color:undefined;scrollbar-highlight-color:undefined;scrollbar-darkshadow-color:undefined;scrollbar-track-color:undefined;scrollbar-arrow-color:undefined}</style>
                </p><table>
                  <tbody>
                    <tr>
                      <td lang="EN-US">
                        <div class="Section1">
                          <p class="MsoNormal" style="background:white"><span style="font-size:10.0pt;
                              font-family:"Courier New";
                              color:black"><font style="font-style:normal;
                                font-weight:normal;
                                background-color:rgb(245,248,240);
                                font-size:14px">>
                              </font>Hi - I am actually encountering the
                              same error with databrowser, and was
                              wondering if you ever came up with a
                              solution to this problem - or if anyone
                              else has a solution - I didn't find a
                              response on the mailing list.</span></p>
                          <p class="MsoNormal" style="background:white"><span style="font-size:10.0pt;
                              font-family:"Courier New";
                              color:black"><font style="font-style:normal;
                                font-weight:normal;
                                background-color:rgb(245,248,240);
                                font-size:14px">>
                              </font> </span></p>
                          <p class="MsoNormal" style="background:white"><span style="font-size:10.0pt;
                              font-family:"Courier New";
                              color:black"><font style="font-style:normal;
                                font-weight:normal;
                                background-color:rgb(245,248,240);
                                font-size:14px">>
                              </font>-Michael</span></p>
                          <p class="MsoNormal" style="background:white"><span style="font-size:10.0pt;
                              font-family:"Courier New";
                              color:black"><font style="font-style:normal;
                                font-weight:normal;
                                background-color:rgb(245,248,240);
                                font-size:14px">>
                              </font> </span></p>
                          <p class="MsoNormal" style="background:white"><span style="font-size:10.0pt;
                              font-family:"Courier New";
                              color:black"><font style="font-style:normal;
                                font-weight:normal;
                                background-color:rgb(245,248,240);
                                font-size:14px">>
                              </font> </span></p>
                          <p class="MsoNormal" style="background:white"><span style="font-size:10.0pt;
                              font-family:"Courier New";
                              color:black"><font style="font-style:normal;
                                font-weight:normal;
                                background-color:rgb(245,248,240);
                                font-size:14px">>
                              </font> </span></p>
                          <div class="MsoNormal" style="text-align:center; background:white" align="center">
                            <span style="font-size:10.0pt;
                              font-family:"Courier New";
                              color:black">
                              <hr align="center" size="2" width="100%">
                            </span></div>
                          <p class="MsoNormal" style="background:white"><span style="font-size:10.0pt;
                              font-family:"Courier New";
                              color:black"><font style="font-style:normal;
                                font-weight:normal;
                                background-color:rgb(245,248,240);
                                font-size:14px">>
                              </font>Dear Fieldtrippers,</span></p>
                          <p class="MsoNormal" style="background:white"><span style="font-size:10.0pt;
                              font-family:"Courier New";
                              color:black"><font style="font-style:normal;
                                font-weight:normal;
                                background-color:rgb(245,248,240);
                                font-size:14px">>
                              </font> </span></p>
                          <p class="MsoNormal" style="background:white"><span style="font-size:10.0pt;
                              font-family:"Courier New";
                              color:black"><font style="font-style:normal;
                                font-weight:normal;
                                background-color:rgb(245,248,240);
                                font-size:14px">>
                              </font> </span></p>
                          <p class="MsoNormal" style="background:white"><span style="font-size:10.0pt;
                              font-family:"Courier New";
                              color:black"><font style="font-style:normal;
                                font-weight:normal;
                                background-color:rgb(245,248,240);
                                font-size:14px">>
                              </font>I am encountering a strange error
                              while i try to use ft_databrowser. The
                              error code is as below. I have never seen
                              this error earlier. I used ft_databrowser
                              many times and its only last 2 days that i
                              am getting the error. I downloaded a newer
                              version of fieldtrip (fieldtrip-20120130)
                              and used the newer version but still the
                              same error. Strangely, i dont get this
                              error when i tried with other computers
                              (same matlab version (R2010a), same
                              operating system (windows 7) on both
                              computers. Has anyone got this error
                              before? what may cause this error?</span></p>
                          <p class="MsoNormal" style="background:white"><span style="font-size:10.0pt;
                              font-family:"Courier New";
                              color:black"><font style="font-style:normal;
                                font-weight:normal;
                                background-color:rgb(245,248,240);
                                font-size:14px">>
                              </font> </span></p>
                          <p class="MsoNormal" style="background:white"><span style="font-size:10.0pt;
                              font-family:"Courier New";
                              color:black"><font style="font-style:normal;
                                font-weight:normal;
                                background-color:rgb(245,248,240);
                                font-size:14px">>
                              </font> </span></p>
                          <p class="MsoNormal" style="background:white"><span style="font-size:10.0pt;
                              font-family:"Courier New";
                              color:black"><font style="font-style:normal;
                                font-weight:normal;
                                background-color:rgb(245,248,240);
                                font-size:14px">>
                              </font>fieldtrip version 20120130, matlab
                              version R2010a, operating system windows
                              7.</span></p>
                          <p class="MsoNormal" style="background:white"><span style="font-size:10.0pt;
                              font-family:"Courier New";
                              color:black"><font style="font-style:normal;
                                font-weight:normal;
                                background-color:rgb(245,248,240);
                                font-size:14px">>
                              </font> </span></p>
                          </div></td></tr></tbody></table></span></div></div></div></blockquote></div><div><span>_______________________________________________</span><br><span>fieldtrip mailing list</span><br><span><a href="mailto:fieldtrip@donders.ru.nl">fieldtrip@donders.ru.nl</a></span><br><span><a href="http://mailman.science.ru.nl/mailman/listinfo/fieldtrip">http://mailman.science.ru.nl/mailman/listinfo/fieldtrip</a></span></div></blockquote></body></html>