Table Of Contents

figure

Version:
    Last Modified: March 15, 2017

    Generates a new plot window or activates a plot window. figure generates a new plot window for the next plot command. figure(a) makes plot a the current plot.

    spd-note-note
    Note  

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

    Syntax

    figure
    figure(a)
    obj = figure
    obj = figure(a)

    Inputs

    a

    Reference to the plot window. a can be a reference or a positive integer. If plot window a exists, figure(a) makes that plot window visible and current. If plot window a does not exist, figure(a) creates a new plot window and assigns it the number a if a is a positive integer. figure(a) returns an error if a is an invalid reference.

    Outputs

    obj

    Reference to the current plot window.

    X = 0:1:10;
    plot(X)
    figure
    Y = X.*X;
    plot(Y)

    Where This Node Can Run:

    Desktop OS: Windows

    FPGA: This product does not support FPGA devices


    Recently Viewed Topics