Error bars are automatically offset. they look correct just the error bar for any point should be located at the point before it

4 次查看(过去 30 天)
scatter(t,d40avg)
hold on
%plot(t,trend40)
errorbar(d40avg,d40std)
hold off

采纳的回答

Daniel Pollard
Daniel Pollard 2020-12-10
The scatter plot is
plot(t, d40avg).
The Error bar plot is
plot(d40avg, d40std).
At first glance it may look like the error bars are higher than you want, but actually they're further to the right. Instead, use
plot(t, d40avg, d40std)
to plot your error bars.

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Bar Plots 的更多信息

产品


版本

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by