필터 지우기
필터 지우기

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

조회 수: 2 (최근 30일)
mohan gopal
mohan gopal 2012년 3월 5일
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

답변 (1개)

Daniel Shub
Daniel Shub 2012년 3월 5일
What about something like:
errorbar(x, i+diff([i;p])/2, diff([i;p])/2, diff([i;p])/2)
  댓글 수: 3
Daniel Shub
Daniel Shub 2012년 3월 27일
What isn't perfect? I am not sure what "impicable" means. The syntax stem(8,4,4) is not valid.
Matt Tearle
Matt Tearle 2012년 3월 27일
"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?

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

카테고리

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

태그

제품

Community Treasure Hunt

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

Start Hunting!

Translated by