round2 Matlab script

SPONSORED LINKS

    Specification

  • Version:
  • File size: 0 KB
  • File name: round2.m
  • Last update:
  • Platform: Windows / Linux / Mac OS / BSD / Solaris
  • Language: Matlab
  • Price:Freeware
  • Company: Robert Bemis (View more)

round2 script description:




Publisher review:
round2 - Round input to nearest multiple of arbitrary value. Everyone knows about the ROUND function for converting floating point values to their nearest whole number or integer value, but have you ever wanted to round off values to something other than whole numbers? This simple utility function does just that.Example 1: round PI to 2 decimal places>> round2(pi,0.01)ans =3.14Example 2: round PI to 4 decimal places>> round2(pi,1e-4)ans =3.1416Example 3: round PI to 8-bit fraction>> round2(pi,2^-8)ans =3.1406Examples 4-6: round PI to other multiples>> round2(pi,0.05)ans =3.15>> round2(pi,2)ans =4>> round2(pi,5)ans =5 Requirements: ยท MATLAB Release: R10
round2 is a Matlab script for Mathematics scripts design by Robert Bemis. It runs on following operating system: Windows / Linux / Mac OS / BSD / Solaris.
round2 - Round input to nearest multiple of arbitrary value.

Operating system:
Windows / Linux / Mac OS / BSD / Solaris

Latest script and internet news

222

222

22

Posted on: 18 Jul 2023 22:27 by A. Brown

111

111

111

Posted on: 18 Jul 2023 22:24 by A. Brown

The permanently active Push system offered by the new Google Chrome 42

The permanently active Push system offered by the new Google Chrome 42

Hacked By !Sc-sT

Posted on: 17 Mar 2015 07:57 by A. Brown

SPREAD THE WORD

User Rating


Rating: 2.2 out of 5
Based on 13 ratings. 13 user reviews.

  • Currently 2.15 out of 5
  • 1
  • 2
  • 3
  • 4
  • 5