function g  =  movesegment(minangle, maxangle, input, sensitive,fs)
  %senstive according to the person habit and psychological
%   Detailed explanation goes here
angle_range=abs(maxangle-minangle);
%%obtain the angle range the sound which the user want to move along
%direction
segment=angle_range/sensitive;
angle_value=minangle;
seg=length(input);%the length of the data array
p_ser=round(seg/sensitive);
index_p=1;
%for search array
start=1;
%start point in array
M=[0];
 %jh=0
%start matrix
for n=1:sensitive
    angle_value=(n-1)*segment+angle_value;
    start=(n-1)*p_ser+1;
    %angle for moving
  if n<sensitive
    index_p=n*p_ser;
   
  else 
        index_p=seg;
   end
  %divide matrix 
    
    o=anglehir(input,angle_value,fs,start,index_p);
    % run anglehir;
     M=[M;o];
     %combine matrix
     
end
   g=M;
 
end   
 