No BSD License  

Highlights from
roundd.m

4.0

4.0 | 1 rating Rate this file 0 Downloads (last 30 days) File Size: 1.32 KB File ID: #12992
image thumbnail

roundd.m

by Carlos Adrian Vargas Aguilera

 

13 Nov 2006 (Updated 13 Nov 2006)

Rounds an array up to N digits from the left.

| Watch this File

File Information
Description

Rounds an array up to N digits from the left, taking the element with more digits to the left ['max(abs(x(:)))'] as the reference. So, it is different from ROUNDN (mappinf toolbox) because this latter takes the dot as reference.

roundd(0.012345,3) = 0.012300
roundd(0.012345,4) = 0.012350, etc

Note: inside there is a function that check where an array has integer (natural numbers) elements: ISNATURAL

Check the screenshot for an example.

MATLAB release MATLAB 7.1.0 (R14SP3)
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Comments and Ratings (1)
19 Dec 2006 Tanya Chen

Good. I some times need to clean my data and this has been useful. Thanks

Please login to add a comment or rating.
Tag Activity for this File
Tag Applied By Date/Time
matrices Carlos Adrian Vargas Aguilera 22 Oct 2008 08:49:09
round Carlos Adrian Vargas Aguilera 22 Oct 2008 08:49:09
integer Carlos Adrian Vargas Aguilera 22 Oct 2008 08:49:09
fix Carlos Adrian Vargas Aguilera 22 Oct 2008 08:49:09
roundn Carlos Adrian Vargas Aguilera 22 Oct 2008 08:49:09
digits Carlos Adrian Vargas Aguilera 22 Oct 2008 08:49:09

Contact us at files@mathworks.com