How to put errorbars
이전 댓글 표시
Hi Everyone, How can i put errorbars in my figure below (Between red and green graphs)?

채택된 답변
추가 답변 (2개)
Wayne King
2014년 7월 25일
편집: Wayne King
2014년 7월 25일
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
Aftab Ahmed Khan
2014년 7월 25일
Wayne King
2014년 7월 25일
Presumably this probability comes with some associated error, you just want to use that error in errorbar()
Abo Saqer
2017년 8월 15일
0 개 추천
Hello
Can I get this code to calculate BP, please
카테고리
도움말 센터 및 File Exchange에서 Errorbars에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
