Clear Filters
Clear Filters

plotting: x-axis datenum to datestr

24 views (last 30 days)
crispin Donnelly
crispin Donnelly on 11 Feb 2011
Hi
How do I get an axis, currently displaying datenums to display real dates?
Thanks in advance! Crispin - Matlab Novice

Answers (1)

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

Categories

Find more on Dates and Time in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!