MATLAB: How to have multiple scatter plots on one graph

graphscatter graph

Hi,
I am trying to create a scatter graph which includes multiple sets of data. Essentially what I need is very similar to the excel barchart attached except instead of a bar which is just showing an averaged value I would like to plot multiple points.
I have tried using:
scatter(x,y); hold on; scatter(x1,y1) etc...
but can't seem to find any way to subdivide the data into the four subcategories and plot them side by side.

Best Answer

Isn't this what you actually want?
x = 1:7;
y = rand(7,7);
bar(x,y)