Info
此问题已关闭。 请重新打开它进行编辑或回答。
How do i continue my code to make the pattern as the picture shown?
1 次查看(过去 30 天)
显示 更早的评论
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 个评论
Adam
2016-11-9
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?
回答(0 个)
此问题已关闭。
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!