Scatter plot with categorical x axis

1 次查看(过去 30 天)
I need to make a plot which has categorical x.
Here is what I am trying to produce:
1.JPG
  2 个评论
Zeynab Mousavikhamene
Why you assign 5 to x? As I said, I want the x to be categorical.
Zeynab Mousavikhamene
Thank you but In this script:
y=linspace(1,2,10)
x=length(y)
plot(x,y,'ro')
x=10 not categorical.

请先登录,再进行评论。

回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Data Distribution Plots 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by