Hi Bill,<br><br>Try something like this for the addition of channels 1, 3 and 5 with factors of a, b and c:<br><br>taking care of data:<br>EEG.data(end+1,:) = a * EEG.data(1,:) + b * EEG.data(3,:) + c * EEG.data(5,:);<br><br>
and add 1 to this value:<br>EEG.nbchan = EEG.nbchan+1<br><br>and take care of the name<br>EEG.chanlocs(end+1).labels = 'nameofnewchannel'<br><br>Good luck,<br>Johan<br><br><br><br><br><br><br><div class="gmail_quote">
On Tue, Apr 21, 2009 at 4:53 AM, Bill Prinzmetal <span dir="ltr"><<a href="mailto:wprinz@berkeley.edu">wprinz@berkeley.edu</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi,<br>
        I am a newbe to EEGLAB, but I couldn't find the answer to the<br>
question in the archives.  I would like to make a new channel that<br>
would be a combination of other channels (e.g., new channel=channel<br>
65 - channel 66).  I am use to looking for eye movements, for<br>
example, by subtracting channels on either eye cannula.<br>
        I can insert or append a channel, but that does not seem to<br>
do it.  I take it involves a script of some sort.<br>
Thanks<br>
<br>
Bill<br>
--<br>
<br>
******************************************<br>
Bill Prinzmetal<br>
Psychology Department<br>
University of California<br>
+++++++++++++++++++++++++++<br>
<br>
CSAIL 2009<br>
Information and registration: <a href="http://www.ohsu.edu/csail" target="_blank">http://www.ohsu.edu/csail</a><br>
Dates: July 30 to August 3<br>
<br>
++++++++++++++++++++++++++<br>
<br>
For activities between sessions, see: <a href="http://www.ohsu.edu/csail/billpages/" target="_blank">http://www.ohsu.edu/csail/billpages/</a><br>
_______________________________________________<br>
Eeglablist page: <a href="http://sccn.ucsd.edu/eeglab/eeglabmail.html" target="_blank">http://sccn.ucsd.edu/eeglab/eeglabmail.html</a><br>
To unsubscribe, send an empty email to <a href="mailto:eeglablist-unsubscribe@sccn.ucsd.edu">eeglablist-unsubscribe@sccn.ucsd.edu</a><br>
For digest mode, send an email with the subject "set digest mime" to <a href="mailto:eeglablist-request@sccn.ucsd.edu">eeglablist-request@sccn.ucsd.edu</a><br>
</blockquote></div><br>