필터 지우기
필터 지우기

Creating a battleship space board

조회 수: 1 (최근 30일)
Alex Flores
Alex Flores 2017년 6월 1일
I have to write code for a display board for a battleship type game. I am having trouble figuring out how I would display a board that can change/has different colors. My professor suggested filling in pixels of an image to create the board, which resembles this code: image(255.*~displayBoard); colormap gray; axis off; However, I am not too sure how I can create a similar code to get the type of board that I need or how to go about this. Thanks in advance.

답변 (0개)

카테고리

Help CenterFile Exchange에서 Display Image에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by