How can I modify errorbar's get up?

1 view (last 30 days)
Kaushik Sen
Kaushik Sen on 1 Oct 2012
I want to plot error like '|' without horizontal bars '..... Is there any command?

Answers (2)

Daniel Shub
Daniel Shub on 1 Oct 2012
It used to be so easy ... In R2011a there are 3 methods the errorbar function can use to create errorbars. The "default" method, errorbarHGUsingMATLABClasses, and Lerrorbarv6. Controlling the width of the errorbar in Lerrorbarv6 is easy. There is a parameter called tee which is a proportion of the range of the x-axis. If you set it to 0, you get what you want. I have no idea how the other two methods work. If you copy errorbar.m and then edit it so it always uses Lerrorbarv6 and set tee = 0;, then you will have a function that does what you want.

Hassan
Hassan on 27 Aug 2013
how can i plot errorbar horizontal in matlab R2010a this is my code for plot part : Guys i cant make the errorbar horizontal !!!
how can i make it ??? this is my code for plot part :
figure(1) errorbar(C(:,2),C(:,3),C(:,5),'.b') title('error bar for dx') xlabel('x') ylabel('y')
figure(2) errorbar(C(:,2),C(:,3),C(:,6),'.b') title('error bar for dy') xlabel('x') ylabel('y')
figure(3) errorbar(C(:,2),C(:,3),C(:,7),'.b') title('error bar for dz') xlabel('x') ylabel('y')

Tags

Community Treasure Hunt

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

Start Hunting!