www.gusucode.com > graphics 案例源码程序 matlab代码 > graphics/DisplayGridLines1Example.m

    %% Display Grid Lines
% Display the grid lines for a sine plot. 

% Copyright 2015 The MathWorks, Inc.


x = linspace(0,10);
y = sin(x);
plot(x,y)
grid on