Table Of Contents

hold

Version:
    Last Modified: January 9, 2017

    Determines whether a new plot can overwrite an existing plot. hold toggles between the two states.

    spd-note-note
    Note  

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

    Syntax

    hold
    hold ('off')
    hold ('on')

    Inputs

    off

    Indicates that a new plot can overwrite an existing plot. The next plot command overwrites the existing plot.

    on

    Indicates that a new plot cannot overwrite an existing plot. MathScript plots new data on and applies plot commands to the existing plot.

    X = 0:1:10;
    plot(X)
    Y = X+1;
    hold ('on')
    plot(Y)
    hold ('off')

    Where This Node Can Run:

    Desktop OS: Windows

    FPGA: Not supported


    Recently Viewed Topics