Extract colinear points from a set of points.
[C] = NL_F_ColinearSet(nx,ny)
x-coordinates of points.
y-coordinate of points.
Colinear matrix.
NL_F_ColinearSet extracts the colinear matrix C from the set of points defined by its coordinates (nx,ny). C=[C1;C2;...;Cn] is composed by n colinear sets providing the index of their points. The last column of C provides the number of points of each subset.
nx=[100 900 200 500 600 200 200 750 300 900 300 400]; ny=[100 900 750 450 200 200 100 800 200 600 300 300]; Lx=1000; Ly=1000; he=[]; ta=[]; g=NL_G_MakeGraph('NL_F_Colinear',length(nx),ta,he,nx,ny); f=NL_G_ShowGraphN(g,1); C=NL_F_ColinearSet(nx,ny);//application of NL_F_ColinearSet | ![]() | ![]() |