hiRoger.. actually i just want to ask you about AVGPOWER in Matlab.. this function tell us about average power a signal. so, if we want to use that function in GUI how we can do that? i mean what should we d first? i have some code:
% compute the power spectrum, telling the FFT to use length(x) as the number of %points in the FFT, and to use the sampling frequency 256Hz. [P,f] = periodogram(x2,,length(x2),256); %the function returns a vector of frequencies at which the FFT was computed, f, %and the power at each frequency, P.