Borrar filtros
Borrar filtros

how to plot multiple discrete values in stem plot using line segment

2 visualizaciones (últimos 30 días)
I got the i=[4 5 5 6] and similarly p=[4 5 7 8] .I got both i and p values in y axis. and in x axis i got [8 10 12 14 ] how can i use stem plot for this case .is there ant possibility

Respuestas (1)

Daniel Shub
Daniel Shub el 5 de Mzo. de 2012
What about something like:
errorbar(x, i+diff([i;p])/2, diff([i;p])/2, diff([i;p])/2)
  3 comentarios
Daniel Shub
Daniel Shub el 27 de Mzo. de 2012
What isn't perfect? I am not sure what "impicable" means. The syntax stem(8,4,4) is not valid.
Matt Tearle
Matt Tearle el 27 de Mzo. de 2012
"impossible", perhaps?
Anyway, you can do stem(x,[i',p']), you could also do a hold and set various properties of each stem plot -- the doc has a number of nice examples. Perhaps you could give us some idea of what you want the resulting plot to look like?

Iniciar sesión para comentar.

Etiquetas

Productos

Community Treasure Hunt

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

Start Hunting!

Translated by