function xdat = xtri(n,left,right) 
% XTRI, Creates an triangularly distributed
%      grid of x's (col vector)
%     For use in NonParametric Regression MOVies

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

rand('seed',63839971) ;
xdat = left + (right - left)*(rand(n,2)*[.5;.5]) ;

