%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%Converts an analog frequecy                        %
%to a digital one                                   %
%input is analog wc, output is digital frequency.   %
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

%samp = sampling frequency
%center = center frequency
%band = bandwidth

%wc = digital samples/sec output
%bw = digital bw output

function [wc,bw] = second_band_pass(center,band,samp)

wc=(center*2*pi)/samp
bw=(band*2*pi)/samp

%   tested
%   >> [wc,bw]=analog_digital(2000,1000,4000)
%
%   wc =
%
%      3.1416
%
%   bw =
%
%       1.5708