fill a range with specified color

5 Ansichten (letzte 30 Tage)
Rica
Rica am 25 Mär. 2014
Kommentiert: Rica am 26 Mär. 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?

Antworten (1)

Jos (10584)
Jos (10584) am 25 Mär. 2014
fill([A A],[b c],'r')
help fill
  4 Kommentare
Rica
Rica am 26 Mär. 2014
hi, my goal is that the whole area between the two lines 2 and 4 should be colored.
Thank you
Rica
Rica am 26 Mär. 2014

Melden Sie sich an, um zu kommentieren.

Community Treasure Hunt

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

Start Hunting!

Translated by