From 12:00 PM - 8:00 PM CST on Thursday, October 18, ni.com will be undergoing system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

Table Of Contents

xlabel

Version:
    Last Modified: January 9, 2017

    Labels the x-axis of a plot.

    spd-note-note
    Note  

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

    Syntax

    xlabel(text)

    Inputs

    text

    Label of the x-axis. text is a string.

    X = [0:0.01:1];
    Y = X.*X;
    plot(X, Y)
    xlabel('X-Axis')

    Where This Node Can Run:

    Desktop OS: Windows

    FPGA: Not supported


    Recently Viewed Topics