See if this works in your application:
simulatedTime = [34630:34929, 34630:34929];
simulatedZ = 350 + 250*rand(600, 1);
simulatedY = [sort(floor(50+10*rand(300, 1))); sort(floor(100+10*rand(300, 1)))];
[xq, yq] = meshgrid(min(simulatedTime):60:max(simulatedTime),...
min(simulatedY):1:max(simulatedY));
zq = griddata(simulatedTime, simulatedY, simulatedZ, xq, yq, 'cubic');
figure;
surf(xq, yq, zq);
Ax = gca;
xData = cellstr(datetime(34630:34929, 'convertfrom','posixtime'));
Ax.XTickLabel = xData;
It creates a cell array with the cellstr function, then assigns those to the 'XTickLabel' object.
Experiment with it to get the result you want.
Best Answer