This function simplifies an input by zeroing floating point errors with magnitudes less than a specified value. It is particularly useful for simplifying results from the symbolic toolbox, however this function can be applied to numeric values as well.
Michael Kutzer (2020). zeroFPError(H,ZERO) (https://www.mathworks.com/matlabcentral/fileexchange/47817-zerofperror-h-zero), MATLAB Central File Exchange. Retrieved .
(1) Round coefficients based on zero. This includes additional VPA for decimal coefficients in output.
Updated to accommodate fractions.
(1) Updated to check for use of symbolic variables prior to calling "simplify.m"
Updated to remove extra 'vpa' call.