Connecting Vertical Points in a plot

I have plotted an average y-value along with a minimum and maximum y-value. They are all three plotted at the same x-value. Representing a maximum and minimum range around the average point for that specific x-value. How can I vertically connect these three points so it appears as more of a range instead of three vertical points?
I have attached a picture in case my wording is not clear.
Thanks guys, Chase

1 Comment

I need to connect the square to its respective range, the circle to its respective range, and finally the triangle

Sign in to comment.

 Accepted Answer

One possibility:
figure(1)
plot([1 1], [0.5 0.8], [2 2], [3 4], [3 3], [1 2])
axis([0 4 0 5])
Another is the errorbar function.

More Answers (0)

Tags

Community Treasure Hunt

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

Start Hunting!