필터 지우기
필터 지우기

How do I plot error bar at only one location ?

조회 수: 9 (최근 30일)
HABILA
HABILA 2019년 12월 11일
댓글: HABILA 2019년 12월 11일
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일
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')

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Errorbars에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by