fill a range with specified color

45 views (last 30 days)
Rica
Rica on 25 Mar 2014
Commented: Rica on 26 Mar 2014
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?

Answers (1)

Jos (10584)
Jos (10584) on 25 Mar 2014
fill([A A],[b c],'r')
help fill
  4 Comments

Sign in to comment.

Community Treasure Hunt

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

Start Hunting!