>> x=rand(2,10000); %uniform in square >> ix=find(x(1,:)> x=x(:,ix); >> plot(x(1,:),x(2,:),'*'); %scatter plot.