xticks
Set or queryx设在蜱虫值
Syntax
xticks(ticks)
xt = xticks
xticks('auto')
xticks('manual')
m = xticks('mode')
___= xticks(ax,___)
Description
xticks(
sets thex-axistick values, which are the locations along thex-axis where the tick marks appear. Specifyticks
)ticks
as a vector of increasing values; for example,[0 2 4 6]
. This command affects the current axes.
returns the currentx设在蜱虫值as a vector.xt
= xticks
xticks('auto')
sets an automatic mode, enabling the axes to determine thex设在蜱虫值. Use this option if you change the tick values and then want to set them back to the default values.
xticks('manual')
sets a manual mode, freezing thex设在蜱虫值at the current values. Use this option if you want to retain the current tick values when resizing the axes or adding new data to the axes.
returns the currentx设在蜱虫值mode, which is eitherm
= xticks('mode')'auto'
or'manual'
. By default, the mode is automatic unless you specify tick values or change the mode to manual.
Examples
Input Arguments
Output Arguments
More About
Algorithms
Thexticks
function sets and queries several axes properties related to thex设在蜱虫值.