<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"><html><head><meta name="qrichtext" content="1" /><style type="text/css">p, li { white-space: pre-wrap; }</style></head><body style=" font-family:'DejaVu Sans'; font-size:9pt; font-weight:400; font-style:normal;">Did you try including also eye channels into the analysis? <br>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;"><br></p>Paolo<br>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;"><br></p>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>
> http://listserv.surfnet.nl/archives/fieldtrip.html and<br>
> http://www.ru.nl/neuroimaging/fieldtrip.<br>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;"><br></p></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>