EEGlablist friends:<br><br>I  want to export the numbers behind the activity power spectrum that is displayed by Plot>Component Properties.  I have been given the following code and assurance that once run, the workspace variable "speccomp+first 5 letters of current file+current component number + which frequency" contains the numbers I want.  BUT, plotting those 257 numbers does not resemble the plot I get with the power X  0-50Hz figure I get from Plot>Component Properties.  I keep expecting an array of 50 numbers that correspond to the 0 - 50 Hz range<br>
<br>Can anyone please help with this problem?<br><br>Thanks very much<br><br>currentfilename = EEG.filename;<br>currentfrequency = 10;<br>currentcompA = 13;<br>percentageofFiletoAnalyze = 2;<br>figure;  [spectra freqs speccomp] = pop_spectopo(EEG, 0, [0      EEG.xmax *1000], 'EEG' ...<br>
 , 'freq', [currentfrequency], 'plotchan', 0, 'percent', percentageofFiletoAnalyze, 'icacomps', [currentcompA]...<br>, 'nicamaps', 1, 'icamaps', [1], 'icamode',  'normal',  'freqrange',[8 12],'electrodes','off'); close(gcf);  <br>
newspecs=speccomp;newfreqs=freqs; <br>currentfilename1=currentfilename(1:5); <br>currentcompA1= num2str(currentcompA);<br> v = genvarname([ 'Speccomp' currentfilename1 currentcompA1 'hz']); eval([v ' = newspecs']);<br>
v2 = genvarname([ 'Freqs' currentfilename1 currentcompA1 'hz']); eval([v2 ' = newfreqs']);<br><br><br><br><br><br><br clear="all"><br>-- <br>Don Scott<br><br>(864) 415 - 1795<br>Dscott8201@Gmail.Com<br>
<div><br></div><div><span style="font-family:arial,sans-serif"><i><span style="font-size:x-small">"Although the universe doesn't have an end, it had a beginning in the Big Bang. One might ask what is before that, but the answer is that there is nowhere before the Big Bang, just as there is nowhere south of the South Pole."</span></i></span><div>
<font face="arial, sans-serif"><i><span style="font-size:x-small"><br></span></i></font></div><div><font face="arial, sans-serif"><i><span style="font-size:x-small">--- Stephen Hawking</span></i></font></div></div><br>