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!
