maxX = 510;
maxY = 500;
A=zeros(maxX,maxY);
A(:,430:450) = 1 ;

A(1:170,380:400) = 1 ;
A(340:510, 380:400) = 1;

A(1:56.6, 330:350)= 1;
A(113.2:170, 330:350) = 1 ;
A(340:396.7, 330:350) = 1 ;
A(453.3:510, 330:350) = 1;

A(1:18.9, 280:300) = 1;
A(37.8:56.6, 280:300) = 1;
A(113.2:132.1 , 280:300) = 1;
A(151:170, 280:300) = 1;
A(340:358.9, 280:300) = 1;
A(377.8:396.7, 280:300) = 1;
A(453.3:472.2, 280:300) = 1;
A(491.1:510, 280:300) = 1;

A(1:6.3 , 230:250) = 1;
A(12.6:18.9, 230:250) = 1;
A(37.8:44.1, 230:250) = 1;
A(50.5:56.6, 230:250) = 1;
A(113.2:119.5, 230:250) = 1;
A(125.8:132.1, 230:250) = 1
A(151:157.3, 230:250) = 1;
A(163.6:170, 230:250) = 1;
A(340:346.3, 230:250) = 1;
A(352.6:358.9, 230:250) = 1;
A(377.8:384.1, 230:250) = 1;
A(390.4:396.8, 230:250) = 1;
A(453.3:459.6, 230:250) = 1;
A(465.9:472.2, 230:250) = 1;
A(491.1:497.4, 230:250) = 1;
A(503.7:510, 230:250) = 1;

A(1:2.1, 180:200) = 1;
A(4.2:6.3, 180:200) = 1;
A(12.6:14.7, 180:200) = 1;
A(16.8:18.9, 180:200) = 1;
A(37.8:39.9, 180:200) = 1;
A(42:44.1, 180:200) = 1;
A(50.5:52.6, 180:200) = 1;
A(54.7:56.8, 180:200) = 1;
A(113.2:115.3, 180:200) = 1;
A(117.4:119.5, 180:200) = 1;
A(125.8:127.9, 180:200) = 1;
A(130:132.1, 180:200) = 1;
A(151:153.1, 180:200) = 1;
A(155.2:157.3, 180:200) = 1;
A(163.6:165.7, 180:200) = 1;
A(167.8:170, 180:200) = 1;
A(340:341, 180:200) = 1;
A(344.2:346.3, 180:200) = 1;
A(352.6:354.7, 180:200) = 1;
A(356.8:358.9, 180:200) = 1;
A(377.8:379.9, 180:200) = 1;
A(382:384.1, 180:200) = 1;
A(390.4:392.5, 180:200) = 1;
A(394.6:396.7, 180:200) = 1;
A(453.3:455.4, 180:200) = 1;
A(457.5:459.6, 180:200) = 1;
A(465.9:468, 180:200) = 1;
A(470.5:472.5, 180:200) = 1;
A(491.1:493.2, 180:200) = 1;
A(495.5:497.4, 180:200) = 1;
A(503.7:505.8, 180:200) = 1;
A(509:510, 180:200) = 1;
%the following lines just display the matrix. The details are not important!
imagesc(A');
set(gca,'YDir','normal');
colormap(1-gray);
axis equal;
axis tight;