fill a range with specified color

5 ビュー (過去 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
Rica
Rica 2014 年 3 月 26 日

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeAnnotations についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by