MATLAB: Xtixks in 2d plot

xticks in 2d plot

hi,i have a problem to fix xticks in 2d plot.
i have a time series from 1990,01 up to 2020,03;when i plot my data ,the xaxis is full of date,how i could specify the date will be shown in x axis.
appreciate in advance

Best Answer

datetick seems a good place to start. Otherwise you can see if the xtickformat function suits your need.
Related Question