MATLAB functions to handle units change.