%% Edit Grid Line Placement
% Create a scatter plot of random data and display the grid lines.

x = rand(50,1);
y = rand(50,1);
scatter(x,y)
grid on

%
% Grid lines appear at the tick mark locations. Edit the placement of the grid lines by changing the tick mark locations.

xticks(0:0.2:1)
yticks([0 0.5 0.8 1])

% Copyright 2012 The MathWorks, Inc.