approxeq(x, y, tolerance)

Test for 'nearly equal'

Vous suivez désormais cette soumission

Checks whether values are nearly equal, to within tolerance. Similar to "==", this returns either 1 for true or 0 for false, but here we report whether or not the values are nearly equal. Typical applications are in matching rough calculations to target values, and eliminating floating-point precision limits from equality tests.

Citation pour cette source

Carl Witthoft (2026). approxeq(x, y, tolerance) (https://fr.mathworks.com/matlabcentral/fileexchange/53559-approxeq-x-y-tolerance), MATLAB Central File Exchange. Extrait(e) le .

Informations générales

Compatibilité avec les versions de MATLAB

  • Compatible avec toutes les versions

Plateformes compatibles

  • Windows
  • macOS
  • Linux
Version Publié le Notes de version Action
1.0.0.0