fill a range with specified color

Hi all!
i have these vectors:
%A=[1:5]
%b=[2 2 2 2 2]
%c=[4 4 4 4 4]
plot(A,b,A,c)
how could i plot the the Range (area) between (2 and 4) with a speciefied color for exemple red?

답변 (1개)

Jos (10584)
Jos (10584) 2014년 3월 25일

0 개 추천

fill([A A],[b c],'r')
help fill

댓글 수: 4

Rica
Rica 2014년 3월 25일
thanks for the the help, but it does not work!
Jos (10584)
Jos (10584) 2014년 3월 25일
why not / what is the problem/error you encounter?
Rica
Rica 2014년 3월 26일
hi, my goal is that the whole area between the two lines 2 and 4 should be colored.
Thank you
Rica
Rica 2014년 3월 26일

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

카테고리

도움말 센터File Exchange에서 Annotations에 대해 자세히 알아보기

태그

질문:

2014년 3월 25일

댓글:

2014년 3월 26일

Community Treasure Hunt

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

Start Hunting!

Translated by