I had modified one line in the minboundquad.m function to remove the collinear edges in the pointset.
from
edges = convhull(x,y);
to
edges = convhull(x,y,'Simplify',true);
The main code is
load points2.txtx = points2(:,1);y = points2(:,2);[qx,qy] = minboundquad(x,y)
Result I got is below.
There is some error I could not find out. Can someone help me solve this?
Best Answer