www.gusucode.com > graphics 案例源码程序 matlab代码 > graphics/ChangeTickValuesForxAxisWithDurationsExample.m
%% Change Tick Values for _x_-Axis with Durations % Create a plot with duration values along the _x_-axis. Then, change the % duration values where the tick marks are located. t = minutes(0:.5:3); y = rand(1,7); plot(t,y) %% ticks = minutes(0:.25:3); xticks(ticks)