Scatter plot with categorical x axis

1 visualización (últimos 30 días)
Zeynab Mousavikhamene
Zeynab Mousavikhamene el 25 de Dic. de 2019
Comentada: Zeynab Mousavikhamene el 25 de Dic. de 2019
I need to make a plot which has categorical x.
Here is what I am trying to produce:
1.JPG
  2 comentarios
Zeynab Mousavikhamene
Zeynab Mousavikhamene el 25 de Dic. de 2019
Why you assign 5 to x? As I said, I want the x to be categorical.
Zeynab Mousavikhamene
Zeynab Mousavikhamene el 25 de Dic. de 2019
Thank you but In this script:
y=linspace(1,2,10)
x=length(y)
plot(x,y,'ro')
x=10 not categorical.

Iniciar sesión para comentar.

Respuestas (0)

Categorías

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

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by