date - MATLAB - datetick (specify number of points on axis) -
i use datetick('x','hh:mm:ss.fff'). how can specify how many labels (specially denotes points) on x-axis puts?
datetick
replaces labels of current tick marks formatted date/time strings.
you control actual location of ticks using axes properties
xtick, ytick, ztick: vector of data values locating tick marks
set(gca,'xtick', [1 4 6]);%sets ticks @ x=1, x=4, x=6
gca
"get current axes", change xtick locations on recent axes you've activated (created, clicked on, or else). if have axes handle
set of axes, can use handle in place of "gca".
Comments
Post a Comment