+1. Or you can make it an m-file, if this is something you wish to keep around forever because you use it often. To be honest, I think most of us don't bother, just writing the test like (abs(x)<tol) in our sleep as we need it. That is why there is no function to do this explicitly in MATLAB.
You can also select a web site from the following list:
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
1 Comment
Jan (view profile)
Direct link to this comment
https://www.mathworks.com/matlabcentral/answers/352528-does-matlab-have-a-function-that-says-if-zero-is-near#comment_476622
Sign in to comment.