function [y]=spike_selection(units,Time)

% for i=1:length(units);
%     x=find(units{i}>=Time(1,1) & units{i}<=Time(1,2));
%     
%     xx=fix((((units{i}(x))-Time(1,1))*1000));
%         
%     b=(length(Time(1,1):Time(1,2))*1000);
%     y{i}=zeros(1,b);
%     y{i}(xx)=1;
%     clear x xx b
% end

for i=1:length(units);
    x=find(units{i}>=Time(1,1) & units{i}<=Time(1,2));
    
    y{i}=fix((units{i}(x))*1000);
     
   clear x 
end