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 个评论

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

请先登录,再进行评论。

 采纳的回答

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.

更多回答(0 个)

类别

帮助中心File Exchange 中查找有关 Errorbars 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by