<html><body><div style="color:#000; background-color:#fff; font-family:Courier New, courier, monaco, monospace, sans-serif;font-size:12pt">Hi,<div style="font-family: Courier New, courier, monaco, monospace, sans-serif; font-size: 12pt;"><div style="font-family: times new roman, new york, times, serif; font-size: 12pt;"><div id="yiv782271104"><div style="color:#000;background-color:#fff;font-family:Courier New, courier, monaco, monospace, sans-serif;font-size:12pt;"><div><br></div><div>I am new to fieldtrip and have been struggling with it for the past four weeks. <br></div><div><br></div><div>I am trying to do artifact detection using the Automatic Artifact detection tutorial on the Site. The first issue I am having is when i set <span class="yiv782271104Apple-style-span" style="border-collapse:separate;color:rgb(0, 0, 0);font-family:'Times New
 Roman';font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;orphans:2;text-indent:0px;text-transform:none;white-space:normal;widows:2;word-spacing:0px;font-size:16px;"><span class="yiv782271104Apple-style-span" style="color:rgb(51, 51, 51);font-family:Calibri, Geneva, Arial, Verdana, sans-serif;font-size:12px;line-height:18px;text-align:justify;"><pre class="yiv782271104code
 yiv782271104matlab" style="padding-top:0.5em;padding-right:0.5em;padding-bottom:0.5em;padding-left:0.5em;margin-top:0px;margin-right:0px;margin-bottom:1em;margin-left:0px;font-size:12px;border-top-width:1px;border-right-width:1px;border-bottom-width:1px;border-left-width:1px;border-top-style:dashed;border-right-style:dashed;border-bottom-style:dashed;border-left-style:dashed;border-top-color:rgb(204, 204, 204);border-right-color:rgb(204, 204, 204);border-bottom-color:rgb(204, 204, 204);border-left-color:rgb(204, 204, 204);color:rgb(51, 51, 51);font-family:Consolas, Menlo, Monaco, monospace;background-color:rgb(247, 249, 250);white-space:pre-wrap;width:640px;"><span class="yiv782271104co1" style="padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px;margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;color:rgb(128, 128, 128);font-style:italic;">% make the process interactive</span>
cfg.<span class="yiv782271104me1" style="padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px;margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;color:rgb(0, 102, 0);">artfctdef</span>.<span class="yiv782271104me1" style="padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px;margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;color:rgb(0, 102, 0);">zvalue</span>.<span class="yiv782271104me1" style="padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px;margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;color:rgb(0, 102, 0);">interactive</span> = <span class="yiv782271104co2" style="padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px;margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;color:rgb(128, 128, 128);font-style:italic;">'yes'</span>;</pre></span></span></div><div>I see nothing in the figure that is
 plotted. I see the data plotted when i use the sample data provided but not when i use my Neuroscan EEG data.</div><div><br></div><div>Secondly when i click on stop I get the error pasted below.<br></div><div><br></div><div><img alt="" width="403" height="204"></div><div><br></div><div>??? Reference to non-existent field 'dimord'.<br><br>Error in ==> dimlength at 74<br>      elseif strcmp(data.(fld), 'rpt_pos')<br><br>Error in ==> fixsampleinfo at 31<br>  ntrial = dimlength(data, 'rpt');<br><br>Error in ==> ft_checkdata at 579<br>  data = fixsampleinfo(data);<br><br>Error in ==> ft_rejectartifact at 203<br>  data = ft_checkdata(data, 'hassampleinfo', 'yes');<br><br>Error in ==> do_reject_artifacts at 70<br>data_no_artifact_jump = ft_rejectartifact(cfg,artifact_jump);<br><br>Error in ==> do_preprocess at
 45<br>                do_reject_artifacts(subject);</div><div><br></div><div>I am comfortable making changes to the code and would like some
 pointers in the right direction. I am not sure if this is an issue with Neuroscan data.</div><div><br></div><div>Thanks</div><div><br></div><div>Omoniyi Segun</div></div></div><br><br></div></div></div></body></html>