fill a range with specified color

3 次查看(过去 30 天)
Rica
Rica 2014-3-25
评论: Rica 2014-3-26
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
fill([A A],[b c],'r')
help fill
  4 个评论
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

请先登录,再进行评论。

类别

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