MATLAB: How to find the spectral three dominant frequency components at 100Hz,500Hz&1000Hz, from a time domain signal generated by applying 1000 clicks(auditory stimulus) sampled at 10kHz which was band passed between 100Hz and 3000Hz during recording stag

biomedical signal processingsignal processing

solutions for this problem with codes would be appreciated.

Best Answer

Since you only need to know the spectrum at 3 particular frequencies, I would say do a numerical approx of the Fourier transform integral at those frequencies, e.g.,
f=100; %100 Hz
sampinterval=1/10e3; %one over 10 kHz
fourierCoeffs=exp(-2*pi*f*j*(-T:sampinterval:T)); %Fourier basis coefficients
trapz(yoursignal.*fourierCoeffs));
Related Question