view dsp/bin2freq.m @ 58:ba866ae124c6

Now accepts single color index for all points.
author samer
date Fri, 09 Oct 2015 13:01:37 +0100
parents 82075c94eed1
children
line wrap: on
line source
function f=bin2freq(k,N,fs)
% K2F: convert DFT freq bin to freq in Hz
%
% f=bin2freq(k,N,fs):
% k:	index of frequency bin in DFT
% N:	frame size of FT
% fs: sampling frequency

f=k*fs/N;