How do I plot only the lower error bars?

20 ビュー (過去 30 日間)
Xochilth Saldana
Xochilth Saldana 2021 年 3 月 14 日
回答済み: dpb 2021 年 3 月 14 日
I am trying to plot only the lower error bars. Here is the way I am currently plotting them. Any suggestions?
residual = N - y_new;
errorbar(x_new,y_new,residual)
  1 件のコメント
Russel Burgess
Russel Burgess 2021 年 3 月 14 日
Not the prettiest method as it leaves the bars in but you can set the lower and upper side individually, i.e.:
errorbar(x_new,y_new,residual,zeros(size(residual)))

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

回答 (2 件)

Star Strider
Star Strider 2021 年 3 月 14 日
Try this:
errorbar(x_new,y_new,residual,[])
It specifies that the lower error bar is to be plotted and the upper error baar is not.

dpb
dpb 2021 年 3 月 14 日
residual = N - y_new;
errorbar(x_new,y_new,residual,[])
Input arguments for four inputs are:
errorbar(x,y,neg,pos)
If only three arguments, then the third is the error magnitude in both directions.

カテゴリ

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