フィルターのクリア

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