function [k] = find_index(w_0)
% FIND INDEX
%
% [k] = find_index(w_0)
%
% This functions finds an index, in a 2048-samples FT, which is
% closest to the given frequency.
% 
% Inputs:
%   w_0 -- The frequency to find
%
% Outputs:
%   k   -- An index, between 1 and 2048, such that 2*pi*(k-1)/2048
%          is one of the closest frequencies to w_0.
% 
k = round((2048*w_0)/(2*pi))+1;
