You are now following this Submission
- You will see updates in your followed content feed
- You may receive emails, depending on your communication preferences
Finding elements in an array that approximate a given value, to within a specified error tolerance, is a common task. This very simple script automates this task and furthermore outputs the relevant elemental indices in order of smallest to largest error, making it easy to select only the n closest matches.
Either a relative, percent or absolute error tolerance may be specified. Numeric arrays of all dimensions are supported.
Cite As
Vinesh Rajpaul (2026). findTol (https://se.mathworks.com/matlabcentral/fileexchange/27298-findtol), MATLAB Central File Exchange. Retrieved .
General Information
- Version 1.2.0.0 (2.08 KB)
MATLAB Release Compatibility
- Compatible with any release
Platform Compatibility
- Windows
- macOS
- Linux
