How to plot the data with the mean plus standard deviation ?

9 ビュー (過去 30 日間)
Jesus
Jesus 2013 年 10 月 29 日
回答済み: Jesus 2013 年 10 月 30 日
How to plot the data with the mean plus standard deviation ? Generate a graph (X verse Y1, Y2). Y1 is the mean plus standard deviation, Y2 is the average less standard deviation. However I would like the graph area between Y1 and Y2 stay filled. My data are similar to these:
X Y1 Y2
1.054171 82.09164 71.74552
1.154169 85.30468 82.58082
1.254169 78.50763 75.39015
1.356947 84.39281 63.49761
1.445835 85.00555 62.59616
1.545835 86.27113 64.9023
1.645836 91.08072 87.28493
1.745834 89.34505 87.97645
1.845835 89.40639 80.56947
1.945835 85.54469 78.97661
2.045835 83.65078 79.415

採用された回答

Jesus
Jesus 2013 年 10 月 30 日
fill([x;flipud(x)],[y1;flipud(y2)],'k')

その他の回答 (1 件)

dpb
dpb 2013 年 10 月 29 日
編集済み: dpb 2013 年 10 月 29 日
Another one of those cases that is so obvious you'd think area would have the option or there would be another builtin function to do it, but no...
File Exchange is your friend, however; always do a search there first...

カテゴリ

Help Center および File Exchange2-D and 3-D Plots についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by