Borrar filtros
Borrar filtros

How to plot the on-off status matrix with elements displayed

1 visualización (últimos 30 días)
Rongxing Hu
Rongxing Hu el 11 de Mayo de 2022
Comentada: Rongxing Hu el 16 de Mayo de 2022
I want to plot a figure like this with matlab. The elements are presented and marked with differetn colors.

Respuestas (1)

Walter Roberson
Walter Roberson el 11 de Mayo de 2022
image() with a colormap with two entries. If you need the labels then text() them into place. You can use find() to get row and column numbers. Remember that row numbers are y coordinates and column numbers are x coordinates.
  1 comentario
Rongxing Hu
Rongxing Hu el 16 de Mayo de 2022
How can I draw the edges for each small colored squares and scale the colorbar(0 the min -color and 1 the max-color).

Iniciar sesión para comentar.

Categorías

Más información sobre Orange en Help Center y File Exchange.

Productos


Versión

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by