Remove error bar ends for R2014b?

조회 수: 10 (최근 30일)
Henrik
Henrik 2015년 2월 20일
댓글: Gabriel Piedrafita 2017년 10월 4일
Hi all
Is there any way to remove the error bar ends in matlab R2014b?
I used a function called removeErrorBarEnds for this, but cannot find a version that works in R2014b.
Thanks in advance.
Henrik
  댓글 수: 1
Gabriel Piedrafita
Gabriel Piedrafita 2017년 10월 4일
At least in the latest versions of MATLAB, one can use the in-built function 'errorbar' and remove the bar ends by tuning the error bar cap size to 0.
y = rand(1,10); err = y.*0.1; errorbar(y,err,'CapSize',0)

댓글을 달려면 로그인하십시오.

채택된 답변

Chad Greene
Chad Greene 2015년 4월 11일
This errbar function works in pre- and post-2014b.
  댓글 수: 1
David
David 2015년 6월 5일
Chad, this is awesome, I'm now a grateful errbar user.

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Errorbars에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by