approxeq(x, y, tolerance)

Test for 'nearly equal'
85 Downloads
Aktualisiert 16 Okt 2015

Lizenz anzeigen

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.

Zitieren als

Carl Witthoft (2024). approxeq(x, y, tolerance) (https://www.mathworks.com/matlabcentral/fileexchange/53559-approxeq-x-y-tolerance), MATLAB Central File Exchange. Abgerufen .

Kompatibilität der MATLAB-Version
Erstellt mit R2012b
Kompatibel mit allen Versionen
Plattform-Kompatibilität
Windows macOS Linux
Kategorien
Mehr zu Test Scripts finden Sie in Help Center und MATLAB Answers

Community Treasure Hunt

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

Start Hunting!
Version Veröffentlicht Versionshinweise
1.0.0.0