www.gusucode.com > graphics 案例源码程序 matlab代码 > graphics/CreateLinePlotExample.m
%% Create Line Plot % Define |x| as a vector of linearly spaced values between 0 and $2\pi$. Use an % increment of $\pi/100$ between the values. Define |y| as sine values of |x|. % Copyright 2015 The MathWorks, Inc. x = 0:pi/100:2*pi; y = sin(x); %% % Create a line plot of the data. figure % opens new figure window plot(x,y)