Remove trailing zeros

Format double numbers to n digits and remove all trailing zeros. Processed with regular expression.

Download
Download

You are now following this Submission

Cite As

Peter Seibold (2026). Remove trailing zeros (https://in.mathworks.com/matlabcentral/fileexchange/158961-remove-trailing-zeros), MATLAB Central File Exchange. Retrieved .

General Information

MATLAB Release Compatibility

  • Compatible with any release

Platform Compatibility

  • Windows
  • macOS
  • Linux
Version Published Release Notes Action
1.1.0

Removed a bug related to Matlab versions older than R2016b

Download
1.0.1

Restriction regarding the MATLAB version dependency removed

Download
1.0.0

Download