how to fill a colour in the area surrounded by lines, X &Yaxis and a curve

조회 수: 2 (최근 30일)
h b
h b 2016년 10월 27일
댓글: h b 2016년 10월 28일

채택된 답변

KSSV
KSSV 2016년 10월 27일
x = [0 50 50] ;
y = [100 100 150] ;
%%Add cooridnates for closing the given points in anti clockwise direction
xi = [50 150 150 0 0] ;
yi = [150 150 0 0 100] ;
xx = [x xi] ;
yy = [y yi] ;
plot(xx,yy)
patch(xx,yy,'r')
  댓글 수: 2
KSSV
KSSV 2016년 10월 28일
Okay...not an issue...Follow the procedure what I have followed. Pick the other coordinates. This case is more easy. You have to pick only one coordinate.

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Triangulation Representation에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by