Line Intersect
Version 1.0.0.0 (919 Bytes) by
Jonathan Millin
Finds the points of intersection for linear time series data, very efficiently
1.8K Downloads
Updated
21 Apr 2008
No License
Finds the intersection point for a set of time series data, without any loops.
Elapsed time is 0.000212 seconds, searching 1800 points, and finding 90 intersections, on a Core 2 Duo E6600 :)
Example Code::
~~~~~~~~~~~~~~
numElem= 50;
a=rand(numElem,1);
b=rand(numElem,1);
xs=1:numElem;
[x,y, signs]=lineIntersect(a,b);
plot(xs,a,'k',xs,b,'b',x,y,'ro')
Cite As
Jonathan Millin (2024). Line Intersect (https://www.mathworks.com/matlabcentral/fileexchange/19642-line-intersect), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Created with
R2007a
Compatible with any release
Platform Compatibility
Windows macOS LinuxCategories
Find more on Time Series in Help Center and MATLAB Answers
Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
Version | Published | Release Notes | |
---|---|---|---|
1.0.0.0 |