1

I am ploting in Matlab using errorbar() function. I have a set of data with mean, max and min values but some points the max and min match the mean value. Therefore when I plkot errorbar I get something like: enter image description here

The thing is that I would not like to have these horizontal lines. The vertical ones are those in which the mean differs from max an min which I still want to keep. Any help?

pd: h1= errorbar(x,y,min,max)
2
  • Have you read through this doc yet? mathworks.com/help/matlab/ref/errorbarseriesproperties.html Commented Oct 14, 2013 at 9:40
  • Yes! But does not says anything about this singular case. You can change line Styles but the only thing I want is to get a point in those that mean max and min are equal Commented Oct 14, 2013 at 9:49

1 Answer 1

1

You could plot two series:

h1 = plot(x,y); % for the central points
idx = min ~= max;
h2 = errorbar(x(idx),y(idx),min(idx), max(idx));
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.