clear;
clc;
close all;
x=0:0.1:20;
y1=sin(x);
t=0:seconds(60):minutes(length(x)-1);
figure
plot(t,y1,'DurationTickFormat','hh:mm:ss');
xticks(t(1):minutes(10):t(end));
box off
clear;
clc;
close all;
x=0:0.1:20;
y1=sin(x);
t=0:seconds(60):minutes(length(x)-1);
figure
plot(t,y1,'DurationTickFormat','hh:mm:ss');
xticks(t(1):minutes(10):t(end));
box off