<div dir="ltr">Dear Julia,<div><br></div><div>Check STUDY.cluster(1,n).spectra</div><div><br></div><div>or something like that to find cluster-mean spectra of nth cluster. You can get frequency scale at STUDY.cluster(1,n).freqs or something like that. Then run a code like this (check variable names though because I'm not looking at Matlab right now)</div>

<div><br></div><div>clusterOfInterest = [3 6 7 14]; % if you are interested in cluster 3,6,7, and 14</div><div>for numLoop = 1:4</div><div>    spectraAll(numLoop,:) = STUDY.cluster(1,clusterOfInterest(numLoop)).spectra;</div>

<div>end</div><div>spectraMean = mean(spectraAll);</div><div>figure; plot(STUDY.cluster(1,3).freqs, spectraMean)</div><div><br></div><div>Makoto</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">2013/7/29 Julia Kline <span dir="ltr"><<a href="mailto:jekline@umich.edu" target="_blank">jekline@umich.edu</a>></span><br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi all. I am using std_specplot to look at the spectral differences between conditions in my EEG data. <div>

<br></div><div>I wanted to plot the average over several clusters of interest. Is it possible to do this?</div>
<div>Currently I input a vector of clusters and the function plots them each as a separate subplot. Is there a way to take the average over all the clusters I am interested in? Thanks!</div><span class="HOEnZb"><font color="#888888"><div>

<br></div><div>Julia </div>
</font></span></div>
<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><br clear="all"><div><br></div>

-- <br><div dir="ltr">Makoto Miyakoshi<br>Swartz Center for Computational Neuroscience<br>Institute for Neural Computation, University of California San Diego<br></div>
</div>