MATLAB: Scatter plot with categorical x axis

scatter

I need to make a plot which has categorical x.
Here is what I am trying to produce:
1.JPG

Best Answer

Hello,
Start by defining the value of the x axis, based on the figure you have only one value, while the value of y-axis varies.
x= any value
y=linspace(1,2,10)
plot(x,y,'ro')
grid minor
xlabel('name')
ylabel('name')
Related Question