Compare Functions

Compare points between two functions (f1>f2, f1<f2, f1==f2), by first finding intersection points.

You are now following this Submission

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://in.mathworks.com/matlabcentral/fileexchange/36839-compare-functions), MATLAB Central File Exchange. Retrieved .

General Information

MATLAB Release Compatibility

  • Compatible with any release

Platform Compatibility

  • Windows
  • macOS
  • Linux
Version Published Release Notes Action
1.0.0.0