distmod(x,n)
Version 1.0.0.0 (497 Bytes) by
Ted
Calculate the "distance" (absolute difference) between x and the nearest multiple of the modulus n.
Distmod finds the "distance" (absolute difference) between x and the nearest multiple of the modulus n. This function is useful when answering the question: "Is x a multiple of n, plus or minus some tolerance?"
Cite As
Ted (2024). distmod(x,n) (https://www.mathworks.com/matlabcentral/fileexchange/52664-distmod-x-n), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Created with
R2014a
Compatible with any release
Platform Compatibility
Windows macOS LinuxCategories
Find more on Coordinate Transformations 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 |