time-frequency spectrum of event related potentials
    1 view (last 30 days)
  
       Show older comments
    
Hi,
I am working with auditory evoked potentials (EEG). I have 100 trials. I can make time-frequency spectrum of averaged signal (from 100 trials) with using software e. g. EEGLAB.
But I would like make time-frequency spectrum of each trial and after that create average spectrum. I can create FOR loop, where each step makes time-frequency spec. from one trial. Then I have 100 T-F Spec. But I don't know how to 'piece together' individual trial spectrums to gain averaged spectrum.
Is it at all possible ? Some basic idea ? many thanks
2 Comments
  Daniel kiracofe
      
 on 7 Jul 2014
				How are you making the individual time-frequency spectrums? spectrogram? If so, you just need a loop like
for i=1:100
  [S(i,:,:),F,T] = spectrogram(...)
end
AvgS = mean(S, 1);
Does this answer the question?
Answers (1)
  Star Strider
      
      
 on 7 Jul 2014
        I would not use the time-frequency spectra for each trial to calculate the average spectrum for the trial. I would simply take the fft of the entire signal for each trial and use that as the average.
See Also
Categories
				Find more on Time-Frequency Analysis in Help Center and File Exchange
			
	Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!