Hello,
I've tried to use the function fill(X,Y,C) with the set of data specified in the attached m-file (contour_draft.m). The data (XY coordinates) represents a piecewise-linear closed contour, that can be also considered as a polygon with very many sides (since every point can be considered as a polygon vertex, if the points don't lie on the same line).
The contour has three "sides". The two straight lines are in the bottom left, and one "curve" spans from bottom left to the upper right corner of the figure. The joint points of any side with other sides (shown in green) are present in the XY-coordinates of any two adjacent sides (i.e. any two adjacent sides have their common point in their XY-coordinates lists). Then the XY-coordinates of the sides were concantenated in the correct order (i.e. green vertex to green vertex), but somehow the fill-funtion prefers to fill a triangle instead of the full contour.
Is there a way to enforce fill() (or patch()) to fill the whole contour?