2-D line plot - MATLAB plot - MathWorks
www.mathworks.com › help › matlabTo plot a set of coordinates connected by line segments, specify X and Y as vectors of the same length. To plot multiple sets of coordinates on the same set of axes, specify at least one of X or Y as a matrix. plot (X,Y,LineSpec) creates the plot using the specified line style, marker, and color. example.