Info

이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.

How do i continue my code to make the pattern as the picture shown?

조회 수: 1 (최근 30일)
Kenneth Phang
Kenneth Phang 2016년 11월 9일
마감: MATLAB Answer Bot 2021년 8월 20일
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
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?
Kenneth Phang
Kenneth Phang 2016년 11월 9일
that is actually my code that i have programmed, i did attempt it by my own first before i ask any helps and the reason i need helps is to ask is there any ways for me to connect the black pixels which will form a box.

답변 (0개)

이 질문은 마감되었습니다.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by