[Eeglablist] Add data channel
Arnaud Delorme
arno at ucsd.edu
Tue Aug 16 21:47:17 PDT 2011
Dear Bill,
adding a new empty data channel:
EEG.data(end+1,:) = 0;
EEG.nbchan = size(EEG.data,1);
if ~isempty(EEG.chanlocs)
EEG.chanlocs(end+1).label = '';
end;
[ALLEEG EEG CURRENTSET] = eeg_store(ALLEEG, EEG, CURRENTSET);
eeglab redraw
Hope this helps,
Arno
On Jul 23, 2011, at 3:31 PM, Bill Prinzmetal wrote:
> I have input my data, referenced to all. I would like to add a new channel that is not a reference channel, like Keren et al Neuroimage (2010) that is (VOG + HOG + superior eye etc.). I can append channel, but if I check data channel, it protests. If I do not check that box, it does not change the channels (from 72 to 73). I could add the new calculated channel to EEG.data.73, but the number of channels is wrong. I could change the nchan but there is probably more to adding a channel than that. Is there some simple (or not so simple) way of adding a new data channel?
>
> I also tried to change the location file to have a channel 73, but it did not like that either.
>
> b
>
>
> --
> ******************************************
> Only muggles talk of mind 'reading'. The mind is not a book to be opened at will and examined a leisure. Thoughts are not sketched on the insides of skulls to be pursued by any invader. The mind is a complex and many layered thing. ~ Professor Severus Snape
> ******************************************
> Bill Prinzmetal
> Psychology Department
> University of California
> Berkeley, CA 94720
> wprinz at berkeley.edu
> (510)643-7635 work; (510)236-5013 home; (510)685-8623 cell
> ******************************************
> For a good time, visit:
> http://www.ohsu.edu/csail
> _______________________________________________
> Eeglablist page: http://sccn.ucsd.edu/eeglab/eeglabmail.html
> To unsubscribe, send an empty email to eeglablist-unsubscribe at sccn.ucsd.edu
> For digest mode, send an email with the subject "set digest mime" to eeglablist-request at sccn.ucsd.edu
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://sccn.ucsd.edu/pipermail/eeglablist/attachments/20110816/ad8b73f0/attachment.html>
More information about the eeglablist
mailing list