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

1 visualización (últimos 30 días)
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?

Respuesta aceptada

Daniel Shub
Daniel Shub el 31 de Mayo de 2013
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 comentario
Gabriele
Gabriele el 31 de Mayo de 2013
Editada: Gabriele el 31 de Mayo de 2013
in this way:
figure
plot(X1,Y1);
errorbar(X1,Y1,errors1);
plot(X2,Y2);
errorbar(X2,Y2,errors2);
hold on
it doesn't work...

Iniciar sesión para comentar.

Más respuestas (2)

Gabriele
Gabriele el 31 de Mayo de 2013
in this way it doesn't work...

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

Categorías

Más información sobre Errorbars en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by