Drawing something simple with MATLAB
정보
이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.
이전 댓글 표시
I need to write a code to produce the following pattern:
X...X
.X.X.
..X..
.X.X.
X...X
can anyone please help me with the code?
댓글 수: 1
Enis
2011년 10월 27일
답변 (3개)
Ajay Kumar
2011년 10월 27일
disp(' ')
disp('X...X')
disp('.X.X.')
disp('..X..')
disp('.X.X.')
disp('X...X')
disp(' ')
댓글 수: 0
Ajay Kumar
2011년 10월 27일
0 개 추천
Try the above. It should work. This is the simplest if you are just trying to display characters
댓글 수: 0
이 질문은 마감되었습니다.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!