Be the first to rate this file! 5 Downloads (last 30 days) File Size: 3.62 KB File ID: #21121

Round to Specified Digits Place

by Edward Zechmann

 

18 Aug 2008 (Updated 19 Aug 2008)

Rounds to the specified digits place and supports five different styles of rounding the last digit.

| Watch this File

File Information
Description

This program is similar to round2. It supports both real and complex numbers. It rounds to the specified digits place and it supports five different styles of rounding the last digit. Also the last digit can be rounded to a multiple of a whole number.

This program also converts the precision rounded array to a cell array of strings.

The program is especially useful for scientific publications, where rounding to a specified digits place is necessary.

Acknowledgements

The author wishes to acknowledge the following in the creation of this submission:
round2, ROUND2

MATLAB release MATLAB 7.5 (R2007b)
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Comments and Ratings (1)
19 Aug 2008 Duane Hanselman

Too bad the help text lacks an H1 line and is entirely different than standard MATLAB help text. Otherwise, this might be a good submission.

Please login to add a comment or rating.
Tag Activity for this File
Tag Applied By Date/Time
digits Edward Zechmann 22 Oct 2008 10:15:07
round Edward Zechmann 22 Oct 2008 10:15:07
sigfigs Edward Zechmann 22 Oct 2008 10:15:07
significant figures Edward Zechmann 22 Oct 2008 10:15:07
figures Edward Zechmann 22 Oct 2008 10:15:07

Contact us at files@mathworks.com