Compare Functions

Compare points between two functions (f1>f2, f1<f2, f1==f2), by first finding intersection points.
278 Downloads
Updated 24 May 2012

View License

Find the intersection points between two functions f1 and f2 defined for the discrete abscissa x. This results in a possibly greater number of x data (along with f1 and f2 data) in order to include the intersection points between both functions.
From this new data set (new x, new f1 and new f2), logical index vectors are returned to indicate values of x for which: f1 > f2, f1 < f2 and f1 == f2.

Cite As

Mathieu Boutin (2024). Compare Functions (https://www.mathworks.com/matlabcentral/fileexchange/36839-compare-functions), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R13
Compatible with any release
Platform Compatibility
Windows macOS Linux

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Version Published Release Notes
1.0.0.0