MATLAB: Display date data on x-axis

plotserial date number

I have a date data (dd.mm.yyyy HH:MM). After importing, the date data change into serial-date-numbers (729756). I use this type of data to plot. However, the type of data displaying at x-axis is serial-date-numbers type. Now I want my x-axis display as (dd.mm.yyyy HH:MM). I need your help. Thank you very much in advance

Best Answer

The easiest approach is likely to use the datetick (link) function.