Datenum problem with errorbar plot

1 回表示 (過去 30 日間)
Joseff Saunders
Joseff Saunders 2018 年 12 月 5 日
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')

回答 (0 件)

カテゴリ

Help Center および File ExchangeErrorbars についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by