Explicitly document your function signatures. Standardize your code so that user interface containers are placed strictly at the beginning of the argument line—mirroring native patterns across the entire technical platform. Using an axes handle as an input for a function - MathWorks
To combat this, companies have developed software packages that use touch probes and calibration spheres to measure a machine's performance. axescheck