isalmost
Version 1.0.0.0 (667 Bytes) by
James
checks if two values are almost equal within a given tolerance interval
2K Downloads
Updated
3 Aug 2007
No License
This simple function tests if matrix a is approximately equal to b within a specified tolerance interval (a = b±tol).
I find this useful for situations where rounding issues cause exact testing (eg. find(a==b)) to fail to find all relevant values in a vector or matrix.
Cite As
James (2024). isalmost (https://www.mathworks.com/matlabcentral/fileexchange/15816-isalmost), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Created with
R14
Compatible with any release
Platform Compatibility
Windows macOS LinuxCategories
Find more on Logical in Help Center and MATLAB Answers
Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
Version | Published | Release Notes | |
---|---|---|---|
1.0.0.0 |