<html><head><base href="x-msg://17/"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">nope... only 2 channels...<div><br></div><div><br><div><div>On 26/ott/2009, at 15.08, Paolo Toffanin 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 style="font-family: 'DejaVu Sans'; font-size: 9pt; font-weight: 400; font-style: normal; ">Did you try including also eye channels into the analysis?<span class="Apple-converted-space"> </span><br><div style="white-space: pre-wrap; margin-top: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; text-indent: 0px; "><br></div>Paolo<br><div style="white-space: pre-wrap; margin-top: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; text-indent: 0px; "><br></div>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>><span class="Apple-converted-space"> </span><a href="http://listserv.surfnet.nl/archives/fieldtrip.html">http://listserv.surfnet.nl/archives/fieldtrip.html</a><span class="Apple-converted-space"> </span>and<br>><span class="Apple-converted-space"> </span><a href="http://www.ru.nl/neuroimaging/fieldtrip">http://www.ru.nl/neuroimaging/fieldtrip</a>.<br><div style="white-space: pre-wrap; margin-top: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; text-indent: 0px; "><br></div><p style="white-space: pre-wrap; ">----------------------------------</p><p style="white-space: pre-wrap; ">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; ">  <a href="http://listserv.surfnet.nl/archives/fieldtrip.html">http://listserv.surfnet.nl/archives/fieldtrip.html</a></p><p style="white-space: pre-wrap; ">  <a href="http://www.ru.nl/fcdonders/fieldtrip/">http://www.ru.nl/fcdonders/fieldtrip/</a></p></div></span></blockquote></div><br></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>