How to make a raster plot for the binary response of two model?

I want to visualize my binary data in a raster plot. How can I plot ''ones'' as small line segments in raster plots?
my x-axis is going to be ''trial number'' , my y-axis is going to be response of two models ( [1 2]) and response = 1 should be like a small line segment in the plot.
Thanks.

1 comentario

I found my answer: I can use scatter plot with "|" marker instead of circle

Iniciar sesión para comentar.

Respuestas (0)

Categorías

Más información sobre MATLAB en Centro de ayuda y File Exchange.

Productos

Versión

R2022b

Etiquetas

Preguntada:

el 4 de Feb. de 2023

Comentada:

el 4 de Feb. de 2023

Community Treasure Hunt

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

Start Hunting!

Translated by