필터 지우기
필터 지우기

Info

이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.

monotone colored matrix with gridlines

조회 수: 1 (최근 30일)
C Hart
C Hart 2016년 10월 4일
마감: MATLAB Answer Bot 2021년 8월 20일
I want to create a monotone image of a matrix with gridlines the image must be a gray color what am I doing wrong?
monotone = zeros (10,10) - 1;
monotone_gray = 0.8 * [1 1 1];
monotone_matrix (montone, 1:3) = [ montone_gray ];
axis off;
grid on;
image(unclicked)
Thank you

답변 (1개)

Thorsten
Thorsten 2016년 10월 4일
편집: Thorsten 2016년 10월 4일
Th showing a gray matrix is easy:
I = 0.8*ones(10,10);
imshow(I)
But removing the axis but keeping the grid is not, because ticks and gridlines are linked.
But you can use line to draw your own lines.

이 질문은 마감되었습니다.

Community Treasure Hunt

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

Start Hunting!

Translated by