How can I plot a filled convex shape?
이전 댓글 표시
Is it possible to plot a filled convex shape?
This is what I want to plot:

This is what I have plotted using the rectangle command but it does not work with unordinary shapes.

채택된 답변
추가 답변 (1개)
Image Analyst
2018년 2월 25일
0 개 추천
For analytical data (graph points) you can do what Star says.
If you have digital images, look at the functions imfill(), bwconvhull(), and poly2mask(). They're all slightly different depending on what you're starting with and what you want to end up with.
댓글 수: 1
Image Analyst
2018년 2월 25일
I don't think Canberk cares about your question - it doesn't answer or address his problem at all - so post your question in a new, completely separate post, not here.
카테고리
도움말 센터 및 File Exchange에서 Lighting, Transparency, and Shading에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!