MATLAB: How to format datastamp XTick axisMATLABplot How to format datastamp XTick in a Matlab plot to just hour:minute? I tried to use xtickformat('dd-MMM-yyyy') But this function, appear, just to be present in the Matlab R2016b version. Best Answer I solved this, founding this functiondatetick('x','HH:MM')The is present in the R2016a version. Related SolutionsMATLAB: Convert date to datetime t = datetime(DateStrings,'InputFormat','dd/MM/yyyy'); MATLAB: Simple 2D plot; Any way I can use String for xtick Hi, Yes, there are a number of ways. Here is one:y = [33 55 66 77];plot(y)set(gca,'xtick',1:4);set(gca,'xticklabel',{'Scenario1', 'Scenario2', 'Scenario3','Scenario4'},'fontsize',8) Related QuestionHow to include milliseconds when converting datestr to datetimeHow to get datetime with the “Epoch” key to millisecond resolutionPlot where x axis is the date, Part 2 (edited)
Best Answer