# line

Version:

Adds a line to the current plot.

Note

You can only use the line function in the MathScript Console.

## Syntax

line(x, y)

## x

X-coordinates of the line you want to plot. x is a vector or matrix. If x is a matrix, line plots each column of x as a separate line.

## y

Y-coordinates of the line you want to plot. y is a vector or matrix. y must be the same size as x.

X = -pi:pi;
Y = sin(X);
line(X, Y)

Where This Node Can Run:

Desktop OS: Windows

FPGA: This product does not support FPGA devices