I have a data set similar to the following (except I have >50 different groups) and I want to make a scatter plot with the categories along x-axis. I know how to do this if I sort the data manually but the data set is very large so I'd like to automate this.
xdata is a cell array read from excel:
xdata = ['group1' 'group1' 'group1' 'group1' 'group1' 'group1' 'group2' 'group2' 'group2' 'group3' 'group3' 'group3' 'group3' 'group3']';
ydata = rand(14,1);
scatter(xdata,ydata,'jitter')
xdata
is a cell array you should define it as such (i.e.,xdata = {'group1' ...}
) – Zep