hoehe = 100; breite = 200; pixelbreite = 3; A = zeros(hoehe,breite); for i = 1:breite if (mod(i,2) == 1) A(1:hoehe,i) = 1; else A(1:hoehe,i) = 0; end end imshow(A);