clear; clc fig=figure; axis([0 10 0 10]) axis off x1=1:10; y1=2*ones(1,10); x2=1:10; y2=8*ones(1,10); line(x1,y1,'Color','g','LineWidth',10) line(x2,y2,'Color','g','LineWidth',10) hold on x1=plot(2,1,'ks','MarkerSize',25,'MarkerFaceColor','k'); x2=plot(3,1,'ks','MarkerSize',25,'MarkerFaceColor','k'); x3=plot(4,1,'ks','MarkerSize',25,'MarkerFaceColor','k'); x4=plot(6,1,'ws','MarkerSize',25,'MarkerFaceColor','w'); x5=plot(7,1,'ws','MarkerSize',25,'MarkerFaceColor','w'); x6=plot(8,1,'ws','MarkerSize',25,'MarkerFaceColor','w'); text(1.8,0,'\bf Ljudozderi','FontSize',14) text(5.8,0,'\bf Svestenici','FontSize',14) x7=plot(2,9,'ks','MarkerSize',25,'MarkerFaceColor','k'); x8=plot(3,9,'ks','MarkerSize',25,'MarkerFaceColor','k'); x9=plot(4,9,'ks','MarkerSize',25,'MarkerFaceColor','k'); x10=plot(6,9,'ws','MarkerSize',25,'MarkerFaceColor','w'); x11=plot(7,9,'ws','MarkerSize',25,'MarkerFaceColor','w'); x12=plot(8,9,'ws','MarkerSize',25,'MarkerFaceColor','w'); boat1=plot(5,2.7,'or','MarkerSize',16,'MarkerFaceColor','r'); boat2=plot(5,7.3,'or','MarkerSize',16,'MarkerFaceColor','r'); set(x7,'Visible','off'); set(x8,'Visible','off'); set(x9,'Visible','off'); set(x10,'Visible','off'); set(x11,'Visible','off'); set(x12,'Visible','off'); set(boat2,'Visible','off'); % pause(1) waitforbuttonpress set(x1,'Visible','off'); set(x2,'Visible','off'); set(x7,'Visible','on'); set(x8,'Visible','on'); set(boat1,'Visible','off'); set(boat2,'Visible','on'); % pause(1) waitforbuttonpress set(x8,'Visible','off'); set(x2,'Visible','on'); set(boat2,'Visible','off'); set(boat1,'Visible','on'); % pause(1) waitforbuttonpress set(x2,'Visible','off'); set(x3,'Visible','off'); set(x8,'Visible','on'); set(x9,'Visible','on'); set(boat1,'Visible','off'); set(boat2,'Visible','on'); % pause(1) waitforbuttonpress set(x9,'Visible','off'); set(x3,'Visible','on'); set(boat1,'Visible','on'); set(boat2,'Visible','off'); % pause(1) waitforbuttonpress set(x4,'Visible','off'); set(x5,'Visible','off'); set(x10,'Visible','on'); set(x11,'Visible','on'); set(boat1,'Visible','off'); set(boat2,'Visible','on'); % pause(1) waitforbuttonpress set(boat1,'Visible','on'); set(boat2,'Visible','off'); set(x8,'Visible','off'); set(x11,'Visible','off'); set(x2,'Visible','on'); set(x5,'Visible','on'); % pause(1) waitforbuttonpress set(boat1,'Visible','off'); set(boat2,'Visible','on'); set(x5,'Visible','off'); set(x6,'Visible','off'); set(x11,'Visible','on'); set(x12,'Visible','on'); % pause(1) waitforbuttonpress set(boat1,'Visible','on'); set(boat2,'Visible','off'); set(x1,'Visible','on'); set(x7,'Visible','off'); % pause(1) waitforbuttonpress set(boat1,'Visible','off'); set(boat2,'Visible','on'); set(x1,'Visible','off'); set(x2,'Visible','off'); set(x7,'Visible','on'); set(x8,'Visible','on'); % pause(1) waitforbuttonpress set(boat1,'Visible','on'); set(boat2,'Visible','off'); set(x8,'Visible','off'); set(x2,'Visible','on'); % pause(1) waitforbuttonpress set(boat1,'Visible','of'); set(boat2,'Visible','on'); set(x2,'Visible','off'); set(x3,'Visible','off'); set(x8,'Visible','on'); set(x9,'Visible','on');