The drawing format of two-dimensional line drawing function is plot(x, y). If both X and Y are arrays, the coordinate data must be drawn in columns, and the size must be the same at this time. If one of X and Y is a vector and the other is an array, draw multiple curves in the same size direction in X and Y; If one of x and y is a scalar and the other is a vector, discrete points perpendicular to the x or y axis will be drawn.
Extended data:
Other calling formats of 2D line drawing function diagram:
1, plot(y): When y is a vector, draw a curve by connecting the data points in turn with a straight line with the component of y as the ordinate and the element serial number as the abscissa. If y is a real matrix, draw the curve corresponding to each column one by one.
2.plot(x 1, y 1, x2, y2,) In this format, each pair of x and y must meet the requirements in plot(x, y), and there is no influence between different pairs. This command will draw a curve for each pair of x and y. ..
X and y in the above three formats can be expressions. Plot is a basic function to draw a one-dimensional curve, but before using this function, you must first define the X and Y coordinates of each point on the curve.