Info
Diese Frage ist geschlossen. Öffnen Sie sie erneut, um sie zu bearbeiten oder zu beantworten.
How do i continue my code to make the pattern as the picture shown?
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
a=3;
b=a*3;
a=a*3;
x=ones(a,b); %make all integer into zero
for row=1:2:a
for col=1:2:b
x(row,col)=0;
end
end
imshow(x)
disp(x)
2 Kommentare
Adam
am 9 Nov. 2016
Isn't this the question you are being asked. So just passing it on to us without attempting it seems a little pointless. Surely it isn't that difficult to extend your code to at least have an attempt at it before asking for help?
Antworten (0)
Diese Frage ist geschlossen.
Siehe auch
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!