Remove error bar ends for R2014b?

5 vues (au cours des 30 derniers jours)
Henrik
Henrik le 20 Fév 2015
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 commentaire
Gabriel Piedrafita
Gabriel Piedrafita le 4 Oct 2017
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)

Connectez-vous pour commenter.

Réponse acceptée

Chad Greene
Chad Greene le 11 Avr 2015
This errbar function works in pre- and post-2014b.
  1 commentaire
David
David le 5 Juin 2015
Chad, this is awesome, I'm now a grateful errbar user.

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Errorbars dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by