Table Of Contents

line

Version:
    Last Modified: January 9, 2017

    Adds a line to the current plot.

    spd-note-note
    Note  

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

    Syntax

    line(x, y)

    Inputs

    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: Not supported


    Recently Viewed Topics