You can create custom user-defined measurements based on MATLAB or Python scripts. When the measurement is created, a button is automatically placed in the User tab of the measurements toolbar.