Datenum problem with errorbar plot

2 views (last 30 days)
Joseff Saunders
Joseff Saunders on 5 Dec 2018
Hello all,
I have an issue displaying datenum data in a plot. I want to use the errorbar plot function to shot date against Temp, howver errorbar doesn't agree with datetime value's, however when I convert to datenum (as shown below), my first two points are the wrong side of January as shown in the image, they should be the last two points in december.
weeks = datenum(Date_ave);
errorbar(weeks,Temp_ave,Temp_sd,'-s')
datetick('x','mmm','keepticks')

Answers (0)

Community Treasure Hunt

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

Start Hunting!