Error bars are automatically offset. they look correct just the error bar for any point should be located at the point before it
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
Liam Williams
el 10 de Dic. de 2020
Comentada: Liam Williams
el 10 de Dic. de 2020
scatter(t,d40avg)
hold on
%plot(t,trend40)
errorbar(d40avg,d40std)
hold off
0 comentarios
Respuesta aceptada
Daniel Pollard
el 10 de Dic. de 2020
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.
Más respuestas (0)
Ver también
Categorías
Más información sobre Bar Plots en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!