How to put errorbars
Afficher commentaires plus anciens
Hi Everyone, How can i put errorbars in my figure below (Between red and green graphs)?

Réponse acceptée
Plus de réponses (2)
Wayne King
le 25 Juil 2014
Modifié(e) : Wayne King
le 25 Juil 2014
Do you have the Statistics Toolbox?
x = 1:10;
y = sin(x);
e = std(y)*ones(size(x));
plot(x,y,'b')
hold on
errorbar(x,y,e,'bo','markerfacecolor',[0 0 1])
Not sure exactly what you mean by "between red and green graphs"
I'm assuming that each data point is an estimate and you have an associated confidence inteval that you want to represent
2 commentaires
Aftab Ahmed Khan
le 25 Juil 2014
Wayne King
le 25 Juil 2014
Presumably this probability comes with some associated error, you just want to use that error in errorbar()
Abo Saqer
le 15 Août 2017
0 votes
Hello
Can I get this code to calculate BP, please
Catégories
En savoir plus sur Errorbars dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
