Compare Functions
Version 1.0.0.0 (1.79 KB) by
Mathieu Boutin
Compare points between two functions (f1>f2, f1<f2, f1==f2), by first finding intersection points.
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 (2026). Compare Functions (https://se.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 LinuxTags
Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
| Version | Published | Release Notes | |
|---|---|---|---|
| 1.0.0.0 |