plot & errorbar: does exist a function that plot many series of data with error bars?

조회 수: 1 (최근 30일)
I know that with plot I can "draw" different series of data plot(X,Y,...,Xn,Yn); and with errorbar I can put error bars on a single serie of data errorbar(X,Y,errors); but how I can put error bars on many series of data?

채택된 답변

Daniel Shub
Daniel Shub 2013년 5월 31일
The simplest way is probably
plot(X1,Y1);
errorbar(X1,Y1,errors1);
plot(X2,Y2);
errorbar(X2,Y2,errors2);
...
plot(Xn,Yn);
errorbar(Xn,Yn,errorsn);
  댓글 수: 1
Gabriele
Gabriele 2013년 5월 31일
편집: Gabriele 2013년 5월 31일
in this way:
figure
plot(X1,Y1);
errorbar(X1,Y1,errors1);
plot(X2,Y2);
errorbar(X2,Y2,errors2);
hold on
it doesn't work...

댓글을 달려면 로그인하십시오.

추가 답변 (2개)

Gabriele
Gabriele 2013년 5월 31일
in this way it doesn't work...

Gabriele
Gabriele 2013년 6월 1일
solved: http://www.slideshare.net/itaharesay/matlab-plotting-part-6 slide 6. a correct use of hold on...

카테고리

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