clear all

MaxX=100;MaxY=100;
M=zeros(MaxX,MaxY);
color=9;
color2=23;
color3=301;
color4=1234;
Ax=axes;
image(M');set(Ax,'YDir','normal');
while 1
[X,Y]=ginput(2);

X=floor(X);
Y=floor(Y);


X1=(X(1));X2=(X(2));
Y1=(Y(1));Y2=(Y(2));

M(X1,Y1)=color;
M(X2,Y2)=color;

DrawMe;
M(X1,Y1);
M(X1+1,Y1+1);


%WideMe;
WideMe2;

%M(X1,Y1)
%M(X1+1,Y1+1)

image(M');
set(Ax,'YDir','normal');



pause(1);


end

