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

3 views (last 30 days)

Accepted Answer

KSSV
KSSV on 27 Oct 2016
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 Comments
KSSV
KSSV on 28 Oct 2016
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.

Sign in to comment.

More Answers (0)

Categories

Find more on Triangulation Representation in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!