필터 지우기
필터 지우기

How to put a red border area in the graph ?

조회 수: 1 (최근 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 CenterFile Exchange에서 2-D and 3-D Plots에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by