How do I plot error bar at only one location ?

Suppose, I have this two data. Here the errorbar is plotted for every v. But I need to put error bat at only one particulat index v(4).
u = 1:10:100;
v = [20 30 45 40 60 65 80 75 95 90];
err = 8*ones(size(v));
errorbar(u,v,err)

 採用された回答

Stijn Haenen
Stijn Haenen 2019 年 12 月 11 日

0 投票

just plot first without errorbar and than with errorbar for only the 4th value:
plot(u,v,'b')
hold on
errorbar(u(4),v(4),err(4),'b')

1 件のコメント

HABILA
HABILA 2019 年 12 月 11 日
Thank You. This worked perfectly

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

その他の回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangeErrorbars についてさらに検索

質問済み:

2019 年 12 月 11 日

コメント済み:

2019 年 12 月 11 日

Community Treasure Hunt

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

Start Hunting!

Translated by