Add dates in x-axis
Ältere Kommentare anzeigen
Hi, I have data for 3months (Jan-Mar). I want to plot them and have the date in x-axis:
cgf=figure;
Days=(1:90);
plot(Days,df,'b.-');
grid on;axis tight;
%x-axis
xticks([1:1:Days]);
datetick('x','dd','keepticks');
but it is not working:/
Akzeptierte Antwort
Weitere Antworten (0)
Kategorien
Mehr zu Dates and Time finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!