rand('state',0); randn('state',0);
x=rand(2,20); x(2,11)=.55;
y= x(1,:)>.5 | x(1,:) < .1 | x(2,:) < .3;

plot(x(1,y),x(2,y),'b.',x(1,~y),x(2,~y),'r.','markersize',30);
set(gca,'fontsize',16); set(gca,'xtick',[0 .25 .5 1],'ytick',[0 .25 .5 1]);
axis square;
print -dpng -r72  decTree0.png

plot(x(1,y),x(2,y),'b.',x(1,~y),x(2,~y),'r.',[.5 .5],[0 1],'k-','linewidth',3,'markersize',30);
set(gca,'fontsize',16); set(gca,'xtick',[0 .25 .5 1],'ytick',[0 .25 .5 1]);
axis square;
print -dpng -r72  decTree1.png

plot(x(1,y),x(2,y),'b.',x(1,~y),x(2,~y),'r.',...
  [.5 .5],[0 1],'k-',[0 .5],[.3 .3],'k--',...
	'linewidth',3,'markersize',30);
set(gca,'fontsize',16); set(gca,'xtick',[0 .25 .5 1],'ytick',[0 .25 .5 1]);
axis square;
print -dpng -r72  decTree2.png




