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

 採用された回答

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.
h b
h b 2016 年 10 月 28 日
thanks for the approach.

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

その他の回答 (0 件)

カテゴリ

質問済み:

h b
2016 年 10 月 27 日

コメント済み:

h b
2016 年 10 月 28 日

Community Treasure Hunt

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

Start Hunting!

Translated by