Hi,<div><br></div><div><div>I solved the problem adding:</div><div> cfg.artfctdef.zvalue.feedback = 'yes';</div><div>Now I can see the figures of the z-score of the processed data. </div><br><div class="gmail_quote">
El 21 de octubre de 2011 11:08, Alicia González <span dir="ltr"><<a href="mailto:ali.gm88@gmail.com">ali.gm88@gmail.com</a>></span> escribió:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div>I'm using the data provided in the tutorial: ArtifactMEG.ds (This dataset was acquired continuously with trials of 10 seconds, and during the recording the experimenter instructed the subject to make artifacts and wrote down the trial number in which the artifacts were made)</div>

<div>And I running the code below:</div><div><br></div><div>cfg                    = [];</div><div>cfg.dataset            = 'ArtifactMEG.ds';</div><div>cfg.headerformat       = 'ctf_ds';</div><div>ctf.dataformat         = 'ctf_ds'; </div>

<div>cfg.trialdef.eventtype = 'trial';</div><div>cfg                    = ft_definetrial(cfg);</div><div><br></div><div>trl                    = cfg.trl(1:50,:); % just use the first 50 trials for the time being</div>

<div><br></div><div>% jump</div><div>cfg                    = [];</div><div>cfg.trl = trl;</div><div>cfg.padding = 0;</div><div>cfg.datafile   = 'ArtifactMEG.ds';</div><div>cfg.headerfile = 'ArtifactMEG.ds';</div>

<div>cfg.continuous = 'yes';</div><div> </div><div>% channel selection, cutoff and padding</div><div>cfg.artfctdef.zvalue.channel    = 'MEG';</div><div>cfg.artfctdef.zvalue.cutoff     = 20;</div><div>cfg.artfctdef.zvalue.trlpadding = 0.5*cfg.padding;</div>

<div>cfg.artfctdef.zvalue.artpadding = 0.5*cfg.padding;</div><div>cfg.artfctdef.zvalue.fltpadding = 0;</div><div> </div><div>% algorithmic parameters</div><div>cfg.artfctdef.zvalue.cumulative    = 'yes';</div><div>

cfg.artfctdef.zvalue.medianfilter  = 'yes';</div><div>cfg.artfctdef.zvalue.medianfiltord = 9;</div><div>cfg.artfctdef.zvalue.absdiff       = 'yes';</div><div> </div><div>% make the process interactive</div>

<div>cfg.artfctdef.zvalue.interactive = 'yes';</div><div> </div><div>[cfg, artifact_jump] = ft_artifact_zvalue(cfg);</div><div><div></div><div class="h5"><br><div class="gmail_quote">2011/10/21 jan-mathijs schoffelen <span dir="ltr"><<a href="mailto:jan.schoffelen@donders.ru.nl" target="_blank">jan.schoffelen@donders.ru.nl</a>></span><br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word">Hi Alicia,<div><br></div><div>In order to be able to address your problem we need some additional feedback of course. What kind of data are you using, etc?</div>

<div><br></div><div>BW, </div><div><br></div><div>JM</div><div><br></div><div><div><div><div></div><div><div>On Oct 21, 2011, at 8:34 AM, Alicia González wrote:</div><br></div></div><blockquote type="cite"><div>
<div></div><div><div class="gmail_quote"><br><div><span style="background-color:rgb(255, 255, 255)"><font face="'Times New Roman'" size="3"><br></font></span></div><div><span style="font-family:'Times New Roman';background-color:rgb(255, 255, 255);font-size:medium">Hi, </span></div>



<div><span style="font-family:'Times New Roman';background-color:rgb(255, 255, 255);font-size:medium"><br></span></div><div><span style="font-family:'Times New Roman';background-color:rgb(255, 255, 255);font-size:medium">I'm trying to do automatic artifact rejection using the tutorial on the site. It seems that everything runs ok but, when I try to see the z-score figure setting </span><span style="color:rgb(51, 51, 51);font-family:Consolas, 'Andale Mono', Menlo, Monaco, monospace;font-size:12px;line-height:18px;white-space:pre-wrap;background-color:rgb(247, 249, 250)">cfg.<span 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 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 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 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></span><span style="font-family:'Times New Roman';background-color:rgb(255, 255, 255);font-size:medium">, nothing appears (and no errors are found). I'm just using the code from the tutorial without changes.</span></div>



<div><span style="font-family:'Times New Roman';background-color:rgb(255, 255, 255);font-size:medium"><br></span></div><div><span style="font-family:'Times New Roman';background-color:rgb(255, 255, 255);font-size:medium">thanks in advance.</span></div>



<span style="color:rgb(51, 51, 51);font-family:Calibri, Geneva, Arial, Verdana, sans-serif;font-size:12px;line-height:18px;background-color:rgb(255, 255, 255)"><h1 style="padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px;margin-top:0.75em;margin-right:0px;margin-bottom:0em;margin-left:0px;font-family:Helvetica, sans-serif;clear:left;font-weight:bold;text-align:left;font-size:2em;line-height:1.5em">



<br></h1></span><div><span style="font-family:'Times New Roman';background-color:rgb(255, 255, 255);font-size:medium"><br></span></div>
</div><br></div></div>
_______________________________________________<br>fieldtrip mailing list<br><a href="mailto:fieldtrip@donders.ru.nl" target="_blank">fieldtrip@donders.ru.nl</a><br><a href="http://mailman.science.ru.nl/mailman/listinfo/fieldtrip" target="_blank">http://mailman.science.ru.nl/mailman/listinfo/fieldtrip</a></blockquote>

</div><br><div>
<span style="border-collapse:separate;color:rgb(0, 0, 0);font-family:Helvetica;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:-webkit-auto;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;font-size:medium"><span style="border-collapse:separate;color:rgb(0, 0, 0);font-family:Helvetica;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;font-size:medium"><div style="word-wrap:break-word">

<span style="border-collapse:separate;color:rgb(0, 0, 0);font-family:Helvetica;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;font-size:medium"><div style="word-wrap:break-word">

<span style="border-collapse:separate;color:rgb(0, 0, 0);font-family:Helvetica;font-size:medium;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px"><div style="word-wrap:break-word">

<div>Jan-Mathijs Schoffelen, MD PhD </div><div>Donders Institute for Brain, Cognition and Behaviour, <br>Centre for Cognitive Neuroimaging,<br>Radboud University Nijmegen, The Netherlands</div><div><a href="mailto:J.Schoffelen@donders.ru.nl" target="_blank">J.Schoffelen@donders.ru.nl</a></div>

<div>Telephone: <a href="tel:%2B31-24-3614793" value="+31243614793" target="_blank">+31-24-3614793</a></div></div></span></div></span></div></span></span>
</div>
<br></div></div><br>_______________________________________________<br>
fieldtrip mailing list<br>
<a href="mailto:fieldtrip@donders.ru.nl" target="_blank">fieldtrip@donders.ru.nl</a><br>
<a href="http://mailman.science.ru.nl/mailman/listinfo/fieldtrip" target="_blank">http://mailman.science.ru.nl/mailman/listinfo/fieldtrip</a><br></blockquote></div><br>
</div></div></blockquote></div><br></div>