How do I plot only the lower error bars?

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

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일

0 개 추천

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일

0 개 추천

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.

카테고리

도움말 센터File Exchange에서 Errorbars에 대해 자세히 알아보기

질문:

2021년 3월 14일

답변:

dpb
2021년 3월 14일

Community Treasure Hunt

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

Start Hunting!

Translated by