Filter löschen
Filter löschen

Info

Diese Frage ist geschlossen. Öffnen Sie sie erneut, um sie zu bearbeiten oder zu beantworten.

monotone colored matrix with gridlines

1 Ansicht (letzte 30 Tage)
C Hart
C Hart am 4 Okt. 2016
Geschlossen: MATLAB Answer Bot am 20 Aug. 2021
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

Antworten (1)

Thorsten
Thorsten am 4 Okt. 2016
Bearbeitet: Thorsten am 4 Okt. 2016
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.

Diese Frage ist geschlossen.

Community Treasure Hunt

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

Start Hunting!

Translated by