필터 지우기
필터 지우기

Write a function drawBox which draws boxes on the screen

조회 수: 1 (최근 30일)
rim
rim 2016년 12월 2일
댓글: rim 2016년 12월 2일
Write a function drawBox which draws boxes on the screen. The function is called with a character (ch) as the first argument and two positive integers which represent the width and the height of the box to be drawn. It automatically draws a box with the character (ch) by the specified width and height.
for example : drawbox('A';10;6)
  댓글 수: 11
Adam
Adam 2016년 12월 2일
['A' repmat( ' ', [1 8] ) 'A']
can produce one of the central lines. The top and bottom lines are even simpler. Then you just have to work out how to put it on the screen and use the input arguments rather than hard-coding numbers in.
rim
rim 2016년 12월 2일
ThankYou

댓글을 달려면 로그인하십시오.

채택된 답변

KSSV
KSSV 2016년 12월 2일

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Time Series Objects에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by