How to reproduce the following graph without knowing the data points?
1 view (last 30 days)
Show older comments
Brendan Burke
on 15 Nov 2015
Commented: Brendan Burke
on 15 Nov 2015
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?
0 Comments
Accepted Answer
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)
See Also
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!