<div dir="ltr"><div><div><div>He EEGlab list,<br></div>I'm hoping that someone will help me to figure out how to compute the frequency resolution using complex demodulation.  As near as I can figure it has to do with the full-width half maximum of the low-pass filter, but I'm not exactly sure.  Here is the code I'm using...<br><br>[b,a]=butter(4/2,5/(1000/2)); %4th order Butterworth filter, low-pass of 5 hz, 1000hz sample rate.<br>H=exp(2*pi*i*freq*(0:length(signal)-1)/srate); %freq=6, srate=1000<br>demodsig=H.*double(signal);<br>demodsig=filtfilt(b,a,demodsig);<br><br></div>I really appreciate the feedback.<br></div>thanks,<br>Paul<br clear="all"><div><div><div><div><br>-- <br><div class="gmail_signature">-----------------------------------------------------<br>Paul Kieffaber, Ph.D.<br>Associate Professor<br>Department of Psychology &<br>Program in Neuroscience<br>The College of William & Mary<br>(757) 221-1965<br><a href="mailto:pdkieffaber@wm.edu">pdkieffaber@wm.edu</a><br>-----------------------------------------------------</div>
</div></div></div></div></div>