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일

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개)

카테고리

도움말 센터File Exchange에서 Graph and Network Algorithms에 대해 자세히 알아보기

질문:

2013년 11월 1일

댓글:

2013년 11월 2일

Community Treasure Hunt

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

Start Hunting!

Translated by