Plotting a confidence interval

조회 수: 3 (최근 30일)
Thor
Thor 2013년 6월 22일
I have a 100 by 3 matrix of a series and its confidence interval, what is the best way to plot this nicely in Matlab ?
I apologize in advance for the somewhat loose question, if anyone knows how to specify the colors of the plot to be blue, green, green that would also be fine.
Thank you
Basic code outline:
plot(x,[y1 c1 c2])

답변 (1개)

Shashank Prasanna
Shashank Prasanna 2013년 6월 22일
plot(x,y1,'b',x,c1,'r:',x,c2,'r:')
You will find all the information you need about formatting in the doc right here:
  댓글 수: 2
Thor
Thor 2013년 6월 22일
I ended up using the code you supplied (modified to my own use ofcourse). But i couldnt figure out a way to do it nicer though i looked at the link.
Thanks for solution but if you had any suggestions how to make it nicer that would be great :)
Shashank Prasanna
Shashank Prasanna 2013년 6월 23일
Can you define nicer?

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

카테고리

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