<html><head><base href="x-msg://19/"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">So I need eog channels other than the 2 I have?<div><br></div><div><br><div><div><div>On 26/ott/2009, at 15.18, Nina wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><span class="Apple-style-span" style="border-collapse: separate; font-family: Helvetica; font-size: medium; 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; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><div lang="DE" link="blue" vlink="purple"><div class="Section1"><div style="white-space: pre-wrap; margin-right: 0cm; margin-left: 0cm; font-size: 12pt; font-family: 'Times New Roman'; margin-top: 0cm; margin-bottom: 0.0001pt; "><font size="2" color="navy" face="Arial"><span lang="EN-GB" style="font-size: 10pt; font-family: Arial; color: navy; ">Hi Marco, <o:p></o:p></span></font></div><div style="white-space: pre-wrap; margin-right: 0cm; margin-left: 0cm; font-size: 12pt; font-family: 'Times New Roman'; margin-top: 0cm; margin-bottom: 0.0001pt; "><font size="2" color="navy" face="Arial"><span lang="EN-GB" style="font-size: 10pt; font-family: Arial; color: navy; ">you might want to try:<o:p></o:p></span></font></div><div style="white-space: pre-wrap; margin-right: 0cm; margin-left: 0cm; font-size: 12pt; font-family: 'Times New Roman'; margin-top: 0cm; margin-bottom: 0.0001pt; "><font size="2" color="navy" face="Arial"><span lang="EN-GB" style="font-size: 10pt; font-family: Arial; color: navy; "><o:p> </o:p></span></font></div><div style="white-space: pre-wrap; margin-right: 0cm; margin-left: 0cm; font-size: 12pt; font-family: 'Times New Roman'; margin-top: 0cm; margin-bottom: 0.0001pt; "><font size="2" color="navy" face="Arial"><span lang="EN-GB" style="font-size: 10pt; font-family: Arial; color: navy; ">cfg.artfctdef.eog.channel
= {your EOG channel(s)};<o:p></o:p></span></font></div><div style="white-space: pre-wrap; margin-right: 0cm; margin-left: 0cm; font-size: 12pt; font-family: 'Times New Roman'; margin-top: 0cm; margin-bottom: 0.0001pt; "><font size="2" color="navy" face="Arial"><span lang="EN-GB" style="font-size: 10pt; font-family: Arial; color: navy; "><o:p> </o:p></span></font></div><div style="white-space: pre-wrap; margin-right: 0cm; margin-left: 0cm; font-size: 12pt; font-family: 'Times New Roman'; margin-top: 0cm; margin-bottom: 0.0001pt; "><font size="2" color="navy" face="Arial"><span lang="EN-GB" style="font-size: 10pt; font-family: Arial; color: navy; ">Nina<o:p></o:p></span></font></div><div style="white-space: pre-wrap; margin-right: 0cm; margin-left: 0cm; font-size: 12pt; font-family: 'Times New Roman'; margin-top: 0cm; margin-bottom: 0.0001pt; "><font size="2" color="navy" face="Arial"><span lang="EN-GB" style="font-size: 10pt; font-family: Arial; color: navy; "><o:p> </o:p></span></font></div><div><div class="MsoNormal" align="center" style="margin-top: 0cm; margin-right: 0cm; margin-bottom: 0.0001pt; margin-left: 0cm; font-size: 12pt; font-family: 'Times New Roman'; text-align: center; "><font size="3" face="Times New Roman"><span style="font-size: 12pt; "><hr size="2" width="100%" align="center" tabindex="-1"></span></font></div><div style="white-space: pre-wrap; margin-right: 0cm; margin-left: 0cm; font-size: 12pt; font-family: 'Times New Roman'; margin-top: 0cm; margin-bottom: 0.0001pt; "><b><font size="2" face="Tahoma"><span style="font-size: 10pt; font-family: Tahoma; font-weight: bold; ">Von:</span></font></b><font size="2" face="Tahoma"><span style="font-size: 10pt; font-family: Tahoma; "> FieldTrip
discussion list [mailto:FIELDTRIP@NIC.SURFNET.NL] <b><span style="font-weight: bold; ">Im Auftrag von </span></b>Paolo Toffanin<br>
<b><span style="font-weight: bold; ">Gesendet:</span></b> Montag, 26. Oktober 2009
15:09<br>
<b><span style="font-weight: bold; ">An:</span></b> <a href="mailto:FIELDTRIP@NIC.SURFNET.NL" style="color: blue; text-decoration: underline; ">FIELDTRIP@NIC.SURFNET.NL</a><br>
<b><span style="font-weight: bold; ">Betreff:</span></b> Re: [FIELDTRIP] importing
raw data</span></font><o:p></o:p></div></div><div style="white-space: pre-wrap; margin-right: 0cm; margin-left: 0cm; font-size: 12pt; font-family: 'Times New Roman'; margin-top: 0cm; margin-bottom: 0.0001pt; "><font size="3" face="Times New Roman"><span style="font-size: 12pt; "><o:p> </o:p></span></font></div><div style="white-space: pre-wrap; margin-right: 0cm; margin-left: 0cm; font-size: 12pt; font-family: 'Times New Roman'; margin-top: 0cm; margin-bottom: 0.0001pt; "><font size="1" face="DejaVu Sans"><span style="font-size: 9pt; font-family: 'DejaVu Sans'; ">Did you try including also eye channels into the
analysis? <br>
<br>
<o:p></o:p></span></font></div><div style="white-space: pre-wrap; margin-right: 0cm; margin-left: 0cm; font-size: 12pt; font-family: 'Times New Roman'; margin-top: 0cm; margin-bottom: 0.0001pt; "><font size="1" face="DejaVu Sans"><span style="font-size: 9pt; font-family: 'DejaVu Sans'; "><o:p> </o:p></span></font></div><div style="white-space: pre-wrap; margin-right: 0cm; margin-left: 0cm; font-size: 12pt; font-family: 'Times New Roman'; margin-top: 0cm; margin-bottom: 0.0001pt; "><font size="1" face="DejaVu Sans"><span style="font-size: 9pt; font-family: 'DejaVu Sans'; ">Paolo<br>
<br>
<o:p></o:p></span></font></div><div style="white-space: pre-wrap; margin-right: 0cm; margin-left: 0cm; font-size: 12pt; font-family: 'Times New Roman'; margin-top: 0cm; margin-bottom: 0.0001pt; "><font size="1" face="DejaVu Sans"><span style="font-size: 9pt; font-family: 'DejaVu Sans'; "><o:p> </o:p></span></font></div><div style="white-space: pre-wrap; margin-right: 0cm; margin-left: 0cm; font-size: 12pt; font-family: 'Times New Roman'; margin-top: 0cm; margin-bottom: 0.0001pt; "><font size="1" face="DejaVu Sans"><span style="font-size: 9pt; font-family: 'DejaVu Sans'; ">On Monday 26 October 2009 02:42:28 pm Marco Rotonda
wrote:<br>
> Hi there,<br>
> I'm trying to import a raw data file to perform artifacting.<br>
> The file I have is quite simple: 2 channels and only data sampled at 256.<br>
> I did the following operations:<br>
><br>
> FF = (csvread('FF.txt', 2, 0))';<br>
> data.trial{1} = FF;<br>
> data.time{1} = linspace(0,180,46080);<br>
> data.fsample=256;<br>
> data.label={'F3';'F4'};<br>
> data.cfg.trl=[1,46080,0];<br>
> cfg.continuous='yes';<br>
> cfg.trl=[1,46080,0];<br>
> cfg.channel={'F3';'F4'};<br>
> cfg2=artifact_eog(cfg,data);<br>
><br>
> but then I have the following message error:<br>
><br>
> ??? Error using ==> artifact_zvalue at 202<br>
> no channels selected<br>
><br>
> Error in ==> artifact_eog at 179<br>
> [tmpcfg, artifact] = artifact_zvalue(tmpcfg,<br>
> data);<br>
><br>
> What I miss?<br>
><br>
> in artifact_zvalue from 197:<br>
><br>
> cfg.artfctdef.zvalue.channel =<br>
> channelselection(cfg.artfctdef.zvalue.channel, hdr.label);<br>
> sgnind = match_str(hdr.label, cfg.artfctdef.zvalue.channel);<br>
> numsgn = length(sgnind);<br>
><br>
> if numsgn<1<br>
> error('no channels selected');<br>
> else<br>
> fprintf('searching for artifacts in %d channels\n', numsgn);<br>
> end<br>
><br>
><br>
> So I added:<br>
><br>
> cfg.artfctdef.zvalue.channel={'F3';'F4'};<br>
><br>
> but I get the same error<br>
> it seems that I need the header... but I have not.<br>
> is it?<br>
><br>
> ----------------------------------<br>
> The aim of this list is to facilitate the discussion between users of the<br>
> FieldTrip toolbox, to share experiences and to discuss new ideas for MEG<br>
> and EEG analysis. See also<br>
> <a href="http://listserv.surfnet.nl/archives/fieldtrip.html" style="color: blue; text-decoration: underline; ">http://listserv.surfnet.nl/archives/fieldtrip.html</a> and<br>
> <a href="http://www.ru.nl/neuroimaging/fieldtrip" style="color: blue; text-decoration: underline; ">http://www.ru.nl/neuroimaging/fieldtrip</a>.<br>
<br>
<o:p></o:p></span></font></div><div style="white-space: pre-wrap; margin-right: 0cm; margin-left: 0cm; font-size: 12pt; font-family: 'Times New Roman'; margin-top: 0cm; margin-bottom: 0.0001pt; "><font size="1" face="DejaVu Sans"><span style="font-size: 9pt; font-family: 'DejaVu Sans'; "><o:p> </o:p></span></font></div></div><p style="white-space: pre-wrap; margin-right: 0cm; margin-left: 0cm; font-size: 12pt; font-family: 'Times New Roman'; ">----------------------------------</p><p style="white-space: pre-wrap; margin-right: 0cm; margin-left: 0cm; font-size: 12pt; font-family: 'Times New Roman'; ">The aim of this list is to facilitate the discussion between users of the FieldTrip  toolbox, to share experiences and to discuss new ideas for MEG and EEG analysis.</p><p style="white-space: pre-wrap; margin-right: 0cm; margin-left: 0cm; font-size: 12pt; font-family: 'Times New Roman'; ">  <a href="http://listserv.surfnet.nl/archives/fieldtrip.html" style="color: blue; text-decoration: underline; ">http://listserv.surfnet.nl/archives/fieldtrip.html</a></p><p style="white-space: pre-wrap; margin-right: 0cm; margin-left: 0cm; font-size: 12pt; font-family: 'Times New Roman'; ">  <a href="http://www.ru.nl/fcdonders/fieldtrip/" style="color: blue; text-decoration: underline; ">http://www.ru.nl/fcdonders/fieldtrip/</a></p><p style="white-space: pre-wrap; margin-right: 0cm; margin-left: 0cm; font-size: 12pt; font-family: 'Times New Roman'; ">----------------------------------</p><p style="white-space: pre-wrap; margin-right: 0cm; margin-left: 0cm; font-size: 12pt; font-family: 'Times New Roman'; ">The aim of this list is to facilitate the discussion between users of the FieldTrip  toolbox, to share experiences and to discuss new ideas for MEG and EEG analysis.</p><p style="white-space: pre-wrap; margin-right: 0cm; margin-left: 0cm; font-size: 12pt; font-family: 'Times New Roman'; ">  <a href="http://listserv.surfnet.nl/archives/fieldtrip.html" style="color: blue; text-decoration: underline; ">http://listserv.surfnet.nl/archives/fieldtrip.html</a></p><p style="white-space: pre-wrap; margin-right: 0cm; margin-left: 0cm; font-size: 12pt; font-family: 'Times New Roman'; ">  <a href="http://www.ru.nl/fcdonders/fieldtrip/" style="color: blue; text-decoration: underline; ">http://www.ru.nl/fcdonders/fieldtrip/</a></p></div></span></blockquote></div><br></div></div></body></html><p>----------------------------------</p>
<p>The aim of this list is to facilitate the discussion between users of the FieldTrip  toolbox, to share experiences and to discuss new ideas for MEG and EEG analysis.</p>
<p>  http://listserv.surfnet.nl/archives/fieldtrip.html</p>
<p>  http://www.ru.nl/fcdonders/fieldtrip/</p>