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

1 次查看(过去 30 天)
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?

采纳的回答

Walter Roberson
Walter Roberson 2015-11-15
编辑:Walter Roberson 2015-11-15
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', '-')

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 2-D and 3-D Plots 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by