function xdat = xvee(n,left,right) 
% XVEE, Creates a
%      grid of x's (col vector) with an V-shaped
%      distribution of a
%     For use in NonParametric Regression MOVies

%    Copyright (c) J. S. Marron and D. Ruppert, 1997

xdat = xtri(n,left,right) ;

len = right - left ;
cent = mean([left; right]) ;

flag = (xdat > cent) ;
          %  1 for guys on right of center
xdat(flag) = xdat(flag) - len/2 ;
flag = ~flag ;
          %  1 for guys on left of center
xdat(flag) = xdat(flag) + len/2 ;


