myX = [];
myY = [];
myZ = [];
a = 0; b = 0.2;
expectedX = a + (b-a).*rand(40,1);
expectedY = a + (b-a).*rand(40,1);
a = 0; b = 0.2;
expectedZ = a + (b-a).*rand(40,1);

plot3(expectedX,expectedY,expectedZ,'+','MarkerSize',10,'LineWidth',2,'MarkerFaceColor','black');
hold on;
a = 0.3; b = 0.5;
expectedX = a + (b-a).*rand(40,1);
expectedY = a + (b-a).*rand(40,1);
a = 0.3; b = 0.5;
expectedZ = a + (b-a).*rand(40,1);
plot3(expectedX,expectedY,expectedZ,'+','MarkerSize',10,'LineWidth',2,'MarkerFaceColor','black');
a = 0.7; b = 0.9;
expectedX = a + (b-a).*rand(40,1);
expectedY = a + (b-a).*rand(40,1);
a = 0.5; b = 0.8;
expectedZ = a + (b-a).*rand(40,1);
plot3(expectedX,expectedY,expectedZ,'+','MarkerSize',10,'LineWidth',2,'MarkerFaceColor','black');
a = 0.1; b = 0.3;
expectedX = a + (b-a).*rand(40,1);
a = 0.7; b = 1;
expectedY = a + (b-a).*rand(40,1);
a = 0.8; b = 1;
expectedZ = a + (b-a).*rand(40,1);
plot3(expectedX,expectedY,expectedZ,'+','MarkerSize',10,'LineWidth',2,'MarkerFaceColor','black');
a = 0.2; b = 0.4;
expectedX = a + (b-a).*rand(40,1);
a = 0.8; b = 1;
expectedY = a + (b-a).*rand(40,1);
a = 0.1; b = 0.3;
expectedZ = a + (b-a).*rand(40,1);
plot3(expectedX,expectedY,expectedZ,'+','MarkerSize',10,'LineWidth',2,'MarkerFaceColor','black');
a = 0.7; b = 0.9;
expectedX = a + (b-a).*rand(40,1);
a = 0.1; b = 0.3;
expectedY = a + (b-a).*rand(40,1);
a = 0.4; b = 0.6;
expectedZ = a + (b-a).*rand(40,1);
plot3(expectedX,expectedY,expectedZ,'+','MarkerSize',10,'LineWidth',2,'MarkerFaceColor','black');
axis([0 1 0 1 0 1])
hold off;
% now actual stuff
a = 0.2; b = 0.4;
expectedX = a + (b-a).*rand(100,1);
expectedY = a + (b-a).*rand(100,1);
a = 0.4; b = 0.7;
expectedZ = a + (b-a).*rand(100,1);
plot3(expectedX,expectedY,expectedZ,'s','MarkerSize',10,'LineWidth',2,'MarkerFaceColor','black');
hold on;
a = 0; b = 1;
expectedX = a + (b-a).*rand(50,1);
expectedY = a + (b-a).*rand(50,1);
expectedZ = a + (b-a).*rand(50,1);
plot3(expectedX,expectedY,expectedZ,'+','MarkerSize',10,'LineWidth',1,'MarkerFaceColor','black');
hold off;