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 件のコメント

Chase Lucia
Chase Lucia 2016 年 6 月 2 日
I need to connect the square to its respective range, the circle to its respective range, and finally the triangle

サインインしてコメントする。

 採用された回答

Star Strider
Star Strider 2016 年 6 月 2 日

0 投票

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 ExchangeErrorbars についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by