plotXY¶
Purpose¶
Graphs X vs. Y using Cartesian coordinates.
Format¶
-
plotXY
([myPlot, ]x, y)¶ Parameters: - myPlot (struct) – Optional argument, a
plotControl
structure. - x (Nx1 or NxM matrix) – Each column contains the X values for a particular line.
- y (Nx1 or NxM matrix) – Each column contains the Y values for a particular line.
- myPlot (struct) – Optional argument, a
Examples¶
// Random y data
y = rndn(100, 1);
// Sequential x data
x = seqa(1, 1, rows(y));
// Plot using XY plot
plotXY(x, y);
Remarks¶
By default missing values in y will be represented as gaps in the line.
See also
Functions plotLogX()
, plotLogLog()
, plotScatter()