How Can I modify the fill command?
이전 댓글 표시
Is there another MATLAB command like fill. If I utilize this command the output is not what I'm looking for. I want the area inside these coordinates value.
fill(coord_x, coord_y, 'r')
The code connects the points not in the way I want. Is there any other command?
댓글 수: 1
Azzi Abdelmalek
2014년 2월 25일
What is the way you want?
채택된 답변
추가 답변 (1개)
Walter Roberson
2014년 2월 25일
0 개 추천
Find the centroid of the points. Then sort all of the points according to their polar angle relative to the centroid. If you sortrows() of the angle and the radius and then you reverse the order then it will be counter-clockwise and largest radius first, which happens to be one of the better ways of creating polygons.
카테고리
도움말 센터 및 File Exchange에서 MATLAB에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!