<div dir="ltr"><div><div><div><div>Hi there,<br><br></div>I found this thread from 2011
 via Google since I had the same problem and I wrote a tiny function 
that correctly adds a channel at the end of EEG data (I'm using version 
13.6.5b):<br><br></div><div>function [EEG] = addChannel(EEG, values, label)<br>if isempty(values)<br>    values = 0;<br>end<br><br>EEG.data(end+1,:) = values;<br>EEG.nbchan = size(EEG.data,1);<br>EEG.chanlocs(end+1).labels = label;<br></div><div><br></div>In Arno's answer, the label was not set correctly since the corresponding field is called "labels" and not "label".<br><br></div>Best wishes,<br></div>Mario</div>