xe = [1:17];
xo = [1.5:16.5];
ye = zeros(1,17);
yo = zeros(1,16);
figure
hold on
for jj=1:46;
    if(mod(jj,2)== 1);
        yo(:) = 1*jj;
        scatter(xo,yo,3,'filled','r');
    else
        ye(:) = 1*jj;
        scatter(xe,ye,3,'filled','r');
    end
end

xlim([1 17]);
ylim([1 46]);
ye = zeros(1,17);
yo = zeros(1,16);
for jj=19:28;
    if(mod(jj,2)== 1);
        yo(7:9) = 1*jj;
        scatter(xo,yo,'filled','b');
    else
        ye(7:9) = 1*jj;
        scatter(xe,ye,'filled','b');
    end
end


ye = zeros(1,17);
yo = zeros(1,16);
for jj=[15,16,17,18,29,30,31,32];
    if(mod(jj,2)== 1);
        yo(7:9) = 1*jj;
        scatter(xo,yo,'filled','g');
    else
        ye(7:9) = 1*jj;
        scatter(xe,ye,'filled','g');
    end
end

ye = zeros(1,17);
yo = zeros(1,16);
for jj=[23];
    if(mod(jj,2)== 1);
        yo(8) = 1*jj;
        scatter(xo,yo,'filled','y');
    else
        ye(8) = 1*jj;
        scatter(xe,ye,'filled','y');
    end
end
hold off;

xlim([1 17]);
ylim([1 46]);
title ('LED Position');