Perform a program that graphs the letter "x inside a box" of size n
조회 수: 5 (최근 30일)
이전 댓글 표시
Perform a program that graphs the letter "x inside a box" of size n
댓글 수: 0
답변 (1개)
tesarj13
2018년 10월 26일
box_size = 100;
box = zeros(box_size);
v = 1:box_size+1;
box(1:box_size+1:end) =1;
box(box_size:box_size-1:end) =1;
imshow(box)
Is that what you want?
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Creating, Deleting, and Querying Graphics Objects에 대해 자세히 알아보기
제품
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!