File Exchange

image thumbnail


version (2.59 KB) by Michael Kutzer
Zero round-off terms resulting from floating point errors

1 Download

Updated 28 Oct 2014

View License

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.

Cite As

Michael Kutzer (2020). zeroFPError(H,ZERO) (, MATLAB Central File Exchange. Retrieved .

Comments and Ratings (0)


(1) Round coefficients based on zero. This includes additional VPA for decimal coefficients in output.
(2) Added "See also" to comments

Updated to accommodate fractions.

(1) Updated to check for use of symbolic variables prior to calling "simplify.m"
(2) Added simplify call prior to calling "vpa.m" to ensure trig simplification.

Description correction.

Updated to remove extra 'vpa' call.

MATLAB Release Compatibility
Created with R2014a
Compatible with any release
Platform Compatibility
Windows macOS Linux