How can I plot the mean and standar deviation of two variables?

5 ビュー (過去 30 日間)
Paula Agudelo
Paula Agudelo 2018 年 3 月 9 日
コメント済み: Paula Agudelo 2018 年 3 月 9 日
I have the mean of two variables and the standard deviation of the same variables, how can I plot error bars of this data so it looks something like this? I have used errorbar function but it doesn't work. Than you.
  1 件のコメント
Jos (10584)
Jos (10584) 2018 年 3 月 9 日
" it doesn't work" is rather meaningless here; you wouldn't be asking this question otherwise ;)
Better tell us which error you got, or why the result was different from what you expected, etc.

サインインしてコメントする。

採用された回答

Von Duesenberg
Von Duesenberg 2018 年 3 月 9 日
You could start like this:
meanVal = [.6, .6];
sdVal = [.4, 0.4];
errorbar(meanVal, sdVal, 'o');
set(gca, 'XLim', [0, 3], 'YLim', [0, 1.2])

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeErrorbars についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by