plotting: x-axis datenum to datestr

24 次查看(过去 30 天)
Hi
How do I get an axis, currently displaying datenums to display real dates?
Thanks in advance! Crispin - Matlab Novice

回答(1 个)

Matt Tearle
Matt Tearle 2011-2-11
datetick('x','dd/mmm/yy')
Or whatever format you want in the second argument (leave it off & MATLAB will pick one for you)

类别

Help CenterFile Exchange 中查找有关 Dates and Time 的更多信息

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by