How to reproduce the following graph without knowing the data points?

1 view (last 30 days)
I have the task of reproducing the attached figure. It is an (x,y) plot with blue dots as data points. However, no information whatsoever is given for the locations of the points except for what is visible in the figure. There are no axes labels in the figure. How can I use Matlab to extract that information and then reproduce the figure?

Accepted Answer

Walter Roberson
Walter Roberson on 15 Nov 2015
Edited: Walter Roberson on 15 Nov 2015
It is a 10 x 10 grid with points at the center of some locations.
x = (1:10) - 1/2;
y = [2 4 8 5 10 9 7 3 6 1] - 1/2;
pointsize = 40;
scatter(x, y, pointsize, 'b', 'filled');
axis([0 10 0 10]);
grid on
set(gca, 'xtick', 0:10, 'ytick', 0:10, 'xticklabel', [], 'yticklabel', [], 'gridlinestyle', '-')

More Answers (0)

Categories

Find more on 2-D and 3-D Plots in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!