You can start with demo.m in the folder.
Those duplicated line segments in the output of function splitEdges can be removed by the following code:
unique_edges = uniquetol(edges, 10^-5, 'ByRows', true );
引用格式
Jiexian Ma (2026). Split Line Segments (Edges) (https://ww2.mathworks.cn/matlabcentral/fileexchange/85123-split-line-segments-edges), MATLAB Central File Exchange. 检索时间: .
