<html><head><meta http-equiv="Content-Type" content="text/html charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div>I've run into a similar problem.  I've just reported the bug:</div><div><br></div><div><div>There is an incompatibility between pop_chanedit and readlocs.  If one, for example, reads a .loc file (with four columns corresponding to channel number, two coordinates, and the channel label) into pop_chanedit using the "read locations" button and accepts the auto detect choice and then saves the data using the "save (as .ced)" button, it produces a .ced file with 13 columns:</div><div><br></div><div><br></div><div>    'theta'</div><div>    'radius'</div><div>    'labels'</div><div>    'sph_theta'</div><div>    'sph_phi'</div><div>    'X'</div><div>    'Y'</div><div>    'Z'</div><div>    'datachan'</div><div>    'sph_radius'</div><div>    'type'</div><div>    'ref'</div><div>    'urchan'</div><div><br></div><div>readlocs, on the other hand, expects the following fields:</div><div><br></div><div>'channum'    </div><div>'labels'    </div><div>'theta'    </div><div>'radius'   </div><div> 'X'    </div><div>'Y'   </div><div> 'Z'   </div><div> 'sph_theta'   </div><div> 'sph_phi'    </div><div>'sph_radius'</div><div>'type'</div><div><br></div><div>Joe</div></div><div><br></div><br><div><div>On Apr 2, 2013, at 5:58 AM, Stephen Politzer-Ahles <<a href="mailto:politzerahless@gmail.com">politzerahless@gmail.com</a>> wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div dir="ltr"><div><div><div><div><div><div>Hi Jianrong,<br><br></div>I guess there's some problem with your channel location file, as this same code worked for me when I used one of my own files. But I can't tell what the issue is without seeing the file; can you send it to me?<br>
<br></div>If your data imported in EEGLAB already have channel locations, there are some other ways you could try getting this to work. The EEG.chanlocs structure has the information you need, so rather than reading the locations you can just put EEG.chanlocs in the spot where you currently have 'PE_loc.txt', like in this example:<br>
<br></div>data = mean( mean( EEG.data(:,100:150,:), 3 ), 2); % average across epochs and timepoints<br></div>figure; topoplot( data, EEG.chanlocs, 'electrodes', 'labels' );<br><br></div>Or, you can use the pop-up menu at "Plot ERP map series". (As far as I know, this only allows you to plot single time points, not averages across time points; but right now I'm at a computer with an older version of EEGLAB on it, I'm not sure if this is changed in recent versions; and if you can make a plot using this menu, you can use 'eegh' to see the command and then you can adapt it).<br>
<br></div>Best,<br>Steve<br></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, Apr 2, 2013 at 12:28 AM, Jianrong Jia <span dir="ltr"><<a href="mailto:jianrongjia@hotmail.com" target="_blank">jianrongjia@hotmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><font color="#333399">Hi Steve,</font></div><div><font color="#333399">I runed topoplot command like this:</font></div>
<div><font color="#ff0000">yyy=[1:1:64];</font></div><div><font color="#ff0000">topoplot(yyy,'PE_loc.txt','electrodes','labels')</font> <font color="#ff0000">;</font></div><div><font color="#333399">and recieved following error message:</font></div>
<div><font color="#ff0000">readlocs(): '' format assumed from file extension<br>readlocs() warning: More columns in the input than expected.<br>                    See >> help readlocs<br>Undefined function or variable "eloc".</font></div>
<div><font color="#ff0000">Error in readlocs (line 458)<br>   if isfield(eloc, 'sph_theta_besa')</font></div><div><font color="#ff0000">Error in topoplot (line 640)<br>        [tmpeloc labels Th Rd indices] = readlocs( loc_file);</font></div>
<div><div><font color="#333399">The PE_loc.txt was exported by <em>Edit-Channel locations-Save(Other types)</em> of EEGLAB. I checked the PE_loc.txt and  be sure that it's channel corresponding to my data.</font><br></div>
<div><font color="#333399">Is anything wrong?</font></div><div><font color="#333399"></font> </div><div><font color="#333399">Best.</font></div><div><font color="#333399">Jianrong</font><br></div><div style="padding:2px 0px;font-family:Arial Narrow;font-size:12px">
------------------ Original ------------------</div><div style="background:rgb(239,239,239);padding:8px;font-size:12px"><div><b>From: </b> "Stephen Politzer-Ahles"<<a href="mailto:politzerahless@gmail.com" target="_blank">politzerahless@gmail.com</a>>;</div>
<div><b>Date: </b> Tue, Apr 2, 2013 03:51 AM</div><div><b>To: </b> "Jianrong Jia"<<a href="mailto:jianrongjia@hotmail.com" target="_blank">jianrongjia@hotmail.com</a>>; <u></u></div><div><b>Cc: </b> "eeglablist"<<a href="mailto:eeglablist@sccn.ucsd.edu" target="_blank">eeglablist@sccn.ucsd.edu</a>>; <u></u></div>
<div><b>Subject: </b> Re: [Eeglablist] how to draw map figures using averaged data</div></div><div><br></div><div dir="ltr"><div>Hello Jianrong,<br><br></div>Once you've imported the data into EEGLAB, you can use the topoplot() function to draw topographic maps of a particular time point, or an average over multiple timepoints.. See the topoplot() help information for more details and examples.<br>

<br>Best,<br>Steve<br></div><div class="im"><div class="gmail_extra"><br><br><div class="gmail_quote">On Sat, Mar 30, 2013 at 11:08 AM, Jianrong Jia <span dir="ltr"><<a href="mailto:jianrongjia@hotmail.com" target="_blank">jianrongjia@hotmail.com</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;padding-left:1ex;border-left-color:rgb(204,204,204);border-left-width:1px;border-left-style:solid"><div><font color="#333399">Dear all</font></div><div><font color="#333399">I have a grand averaged data has been exported by Analyzer 2(Brain Products Corp.). It is only one second. How can i draw maps using this data.</font></div>

<span><font color="#888888"><div><br></div><div><font color="#333399">Jianrong</font></div><div></div><div> </div></font></span><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" target="_blank">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" target="_blank">eeglablist-request@sccn.ucsd.edu</a><br></blockquote></div><br><br clear="all">
<br>-- <br>Stephen Politzer-Ahles<br>
University of Kansas<br>Linguistics Department<br><a href="http://people.ku.edu/~sjpa/" target="_blank">http://people.ku.edu/~sjpa/</a>
</div></div></div></blockquote></div><br><br clear="all"><br>-- <br>Stephen Politzer-Ahles<br>University of Kansas<br>Linguistics Department<br><a href="http://people.ku.edu/~sjpa/" target="_blank">http://people.ku.edu/~sjpa/</a>
</div>
_______________________________________________<br>Eeglablist page: <a href="http://sccn.ucsd.edu/eeglab/eeglabmail.html">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></blockquote></div><br><div apple-content-edited="true">
<div style="color: rgb(0, 0, 0); font-family: Courier; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div style="color: rgb(0, 0, 0); font-family: Courier; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div style="color: rgb(0, 0, 0); font-family: Courier; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div style="color: rgb(0, 0, 0); font-family: Courier; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><span class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><span class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><span class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><span class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><span class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><span class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><span class="Apple-style-span" style="border-collapse: separate; font-size: 12px; border-spacing: 0px; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><span class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><span class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><span class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><div><div><br>--------------------------------------------------------------------------------</div><div><br></div><div>Joseph Dien,</div><div>Senior Research Scientist</div><div>Maryland Neuroimaging Center</div><div>University of Maryland </div><div><br></div><div>E-mail: <a href="mailto:jdien07@mac.com">jdien07@mac.com</a></div><div>Phone: 202-297-8117</div><div><a href="http://joedien.com">http://joedien.com</a></div></div><br></div><div><br></div><div><br></div><br></div></span></div></span></div></span></div></span></div></span></div></span></div></span><br class="Apple-interchange-newline"></div></span><br class="Apple-interchange-newline"></div></span><br class="Apple-interchange-newline"></div></span><br class="Apple-interchange-newline"></div><br class="Apple-interchange-newline"></div><br class="Apple-interchange-newline"></div><br class="Apple-interchange-newline"></div><br class="Apple-interchange-newline"><br class="Apple-interchange-newline">
</div>
<br></body></html>