필터 지우기
필터 지우기

How to plot matrix of ones and zeros as a chessboard?

조회 수: 4 (최근 30일)
Mirlan Karimov
Mirlan Karimov 2019년 4월 5일
답변: A. Sawas 2019년 4월 5일
I have a 3500 X 2500 matrix of zeros and ones. I want to plot it on a figure for which xlims=(1,12) and ylims=(0.5,14). I want to create a grid of 3500 X 2500 on this figure and color the grid boxes by black which corresponds to 1 values of the matrix and by empty which corresponds to 0 values of the matrix.

답변 (1개)

A. Sawas
A. Sawas 2019년 4월 5일
use the function pcolor

카테고리

Help CenterFile Exchange에서 Visual Exploration에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by