发现一组时间序列数据的交点,没有任何循环。
运行时间是0.000212秒,1800点,搜索和发现90十字路口,Core 2 Duo E6600:)
示例代码:
~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~
numElem = 50;
一个=兰德(numElem, 1);
b =兰德(numElem, 1);
x = 1: numElem;
[x, y,迹象]= lineIntersect (a, b);
“k”情节(x, x、b, b, x, y, ro)
引用作为
乔纳森·米林(2023)。线相交(//www.tianjin-qmedu.com/matlabcentral/fileexchange/19642-line-intersect), MATLAB中央文件交换。检索。
版本 | 发表 | 发布说明 | |
---|---|---|---|
1.0.0.0 |