%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%This function min_sample will give the min %
%number of samples required to have to gain %
%the necessary resolution,  input will be a %
%vector of W's and the out put N will be te %
%minimum number of samples needed           %
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

function ML = min_sample(w_array)
%w_array = array of w's

ML= ceil(min(diff(sort(w_array))));

%sample input
%blah=[.25*pi,.37*pi,.98*pi];
%min_sample(blah)

%Outputs
%ml = min number of samples required

%   tested
%   >> x= min_sample(blah)
%
%   x =
%
%     1
