How to put a red border area in the graph ?

3 ビュー (過去 30 日間)
Jesus
Jesus 2013 年 11 月 1 日
コメント済み: sixwwwwww 2013 年 11 月 2 日
How to put a red border area in the graph ? I made a graph using this code:
figure(1);
fill([x; flipud(x)],[y1; flipud(y2)],'g'); hold on;
This is the graph I made:
The edge of the green area is black, but I would like the edge of the area was red. How can I do this?
  2 件のコメント
sixwwwwww
sixwwwwww 2013 年 11 月 1 日
Can you show your graph?
Jesus
Jesus 2013 年 11 月 1 日
this is my graph:

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

採用された回答

sixwwwwww
sixwwwwww 2013 年 11 月 1 日
you can do it as follows:
figure(1);
fill([x; flipud(x)],[y1; flipud(y2)],'g'), hold on,
plot(x, y1, flipud(x), flipud(y2), 'r')
I hope it works. Good luck!
  2 件のコメント
Jesus
Jesus 2013 年 11 月 2 日
sixwwwwww, thanks for the reply.
sixwwwwww
sixwwwwww 2013 年 11 月 2 日
You are welcome

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

その他の回答 (0 件)

カテゴリ

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

Community Treasure Hunt

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

Start Hunting!

Translated by