<< NL_F_Bisection NL_F: Function NL_F_Column >>

NARVAL >> NL_F: Function > NL_F_ColinearSet

NL_F_ColinearSet

Extract colinear points from a set of points.

Calling Sequence

[C] = NL_F_ColinearSet(nx,ny)

Arguments

nx :

x-coordinates of points.

ny :

y-coordinate of points.

C :

Colinear matrix.

Description

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.

Examples

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

Dependency

NL_F_Line2Points

Report an issue
<< NL_F_Bisection NL_F: Function NL_F_Column >>