<div dir="ltr"><div class="gmail_default" style="color:rgb(51,51,153)"><span style="font-size:12.8px;color:rgb(34,34,34)">Hello Xianghong, Notes below, thank you!</span></div><div class="gmail_default" style="color:rgb(51,51,153)"><span style="font-size:12.8px;color:rgb(34,34,34)"><br></span></div><div class="gmail_default" style="color:rgb(51,51,153)"><span style="font-size:12.8px;color:rgb(34,34,34)"><br></span></div><div class="gmail_default" style="color:rgb(51,51,153)"><span style="font-size:12.8px;color:rgb(34,34,34)"><br></span></div><div class="gmail_default" style="color:rgb(51,51,153)"><span style="font-size:12.8px;color:rgb(34,34,34)">*************First please try googling</span> "eeglablist + your topic/question", it is an important resource for you. This basic topic has been covered a lot before on the list, and there are many responses that you can use easily there, including SPECIFIC EXAMPLES of exactly how to  get/average metrics out of the output of that spectral eeglab function (see some basic info about that right below)</div><div class="gmail_default" style="color:rgb(51,51,153)"><br></div><div class="gmail_default" style="color:rgb(51,51,153)">*************If you haven''t had a chance to yet, please also go through the online eeglab tutorial with the tutorial data, which includes many important details and examples, including how to access the "data structures" in eeglab, how to access the "outputs" of eeglab functions, and how to write "eeglab scripts". You can google "eeglab" and each of those topics. If necessary, google online matlab tutorials and youtube videos that show how to work with functions and outputs, as basic matlab training is necessary to make the best of eeglab.</div><div class="gmail_default" style="color:rgb(51,51,153)"><br></div><div class="gmail_default" style="color:rgb(51,51,153)"><br></div><div class="gmail_default" style="color:rgb(51,51,153)">*************Use EEGH (lowercase) to find out how to run the function from the Matlab command line</div><div class="gmail_default" style="color:rgb(51,51,153)">Type eegh in the matlab command line after eeglab has made the Channel/spectral maps figure. Find the command that was just run ("pop_spectopo", which actually runs "spectopo"). That is the name of the function. Type doc "pop_spectopo" and review the documentation. then type doc "spectopo" and review the documentation. Review the OUTPUTS section of the documentation for spectopo. These are "spectra and freqs" and there are others too. Now check out the code lines below, where there is an example of "adding the ouputs"<br></div><div class="gmail_default" style="color:rgb(51,51,153)"><br></div><div class="gmail_default" style="color:rgb(51,51,153)"><br></div><div class="gmail_default" style="color:rgb(51,51,153)">*************THIS IS AN EXAMPLE of what COMES OUT OF THE EEGH COMMAND after you run the Plot Channel/Spectra command from the eeglab gui:</div><div class="gmail_default" style="color:rgb(51,51,153)">figure; pop_spectopo(EEG, 1, [0  2998], 'EEG' , 'percent', 15, 'freq', [6 10 22], 'freqrange',[2 25],'electrodes','off');<br></div><div class="gmail_default" style="color:rgb(51,51,153)"><br></div><div class="gmail_default" style="color:rgb(51,51,153)">If you run that line above in the matlab command window, you will make a new figure (just like when you use the gui)</div><div class="gmail_default" style="color:rgb(51,51,153)"><br></div><div class="gmail_default" style="color:rgb(51,51,153)"><br></div><div class="gmail_default" style="color:rgb(51,51,153)">************NOW ADD THE OUTPUT PART to the Beginning of the command [look at the change at the beginning]</div><div class="gmail_default" style="color:rgb(51,51,153)">[spectra  freqs] = pop_spectopo(EEG, 1, [0  2998], 'EEG' , 'percent', 15, 'freq', [6 10 22], 'freqrange',[2 25],'electrodes','off');<br></div><div class="gmail_default" style="color:rgb(51,51,153)"><br></div><div class="gmail_default" style="color:rgb(51,51,153)">After you run this line, spectra and freqs will be two new variables in your matlab variables. You can review the documentation for their meaning, but essentially spectra holds the spectral values for each channel at each frequency, and the freqs variable holds a list of which frequencies were computed. So you can average across sensors for your frequencies of choice from the data matrix that is named "spectra". To learn how to average, you can google for basic matlab tutorials on how to average vectors or matrices.</div><div class="gmail_default" style="color:rgb(51,51,153)"><br></div><div class="gmail_default" style="color:rgb(51,51,153)"><br></div><div class="gmail_default" style="color:rgb(51,51,153)"><br></div><div class="gmail_default" style="color:rgb(51,51,153)"><br></div><div class="gmail_default" style="color:rgb(51,51,153)"><br></div><div class="gmail_default" style="color:rgb(51,51,153)"><br></div><div class="gmail_default" style="color:rgb(51,51,153)"><br></div><div class="gmail_default" style="color:rgb(51,51,153)"><br></div></div>