% ------------------------- FindCorners.m ----------------------- % % function [CornersFound] = FindCorners(x,y,threshhold,closed) % % inputs: x(1:n),y(1:n) are the coordinates of n points on a % curve, % 0 < threshold < pi is the angle defining a corner: if % the interior angle theta between succesive segments in % the polygon satisfies theta<=pi-threshhold then % the point is declared a corner, % closed = 1 if the curve is to be considered a closed curve, % 0 if not. % Note: at this point we do not assume x(n)==x(1) or y(n)==y(1) for % closed curves. % % outputs: CornersFound: a list, in order, of indices into x,y indicating % points identified as corners. % % This function depends on the function "IntAngle" % function [CornersFound] = FindCorners(x,y,threshhold,closed) disp('%%%%%%% YOU NEED TO WRITE FindCorners %%%%%%%%%%')