Member of the plots class.
datetick(s)
datetick(s, format)
Displays a time stamp for the x-scale or y-scale of a plot.
| Name | Description | ||||
| s | Specifies whether to display the time stamp for the x-scale or y-scale of the plot. s is a string that accepts the following values.
|
||||
| format | Specifies the time format of the scale. format is a string. |
This function is not supported in the LabVIEW Run-Time Engine. This function can remain in your scripts when you build a stand-alone application or shared library, but the LabVIEW Run-Time Engine does not execute this function.
x = [datenum('9-Apr-2007') datenum('10-Apr-2007') datenum('11-Apr-2007') datenum('12-Apr-2007') datenum('13-Apr-2007')];
y = rand(5, 1);
plot(x, y);
datetick('x', 'dd-mmm-yyyy');