Rank: 1373 based on 48 downloads (last 30 days) and 1 file submitted
photo

Yuzo Toya

E-mail

Personal Profile:

Earth Sciences, Data Analysis, GIS, CAD, Software Development, Numerical Modeling, etc.

Professional Interests:
Earth Sciences, Mitigation of Natural Hazards, Global Environment and Energy Issues

 

Watch this Author's files

 

Files Posted by Yuzo
Updated   File Tags Downloads
(last 30 days)
Comments Rating
28 Apr 2009 Rounding Off Number(s) to Specified Significant Figures Round off number(s) to specified significant figures, using two simple/powerful MATLAB functions. Author: Yuzo Toya significant figures, significant digits, rounding, precision, round, decimal 48 7
  • 3.75
3.8 | 4 ratings
Comments and Ratings by Yuzo View all
Updated File Comments Rating
30 Apr 2011 Rounding Off Number(s) to Specified Significant Figures Round off number(s) to specified significant figures, using two simple/powerful MATLAB functions. Author: Yuzo Toya

Neha, You probably did not place the program / code (spa_sf.m) in the MATLAB's search path. Try running the program after moving the file "spa_sf.m" to the MATLAB's search path or to the current directory. Alternatively, you can set the path to the directory where the file "spa_sf.m" is stored on your computer. (From the Menubar, File >> Set Path...)

22 Jun 2009 Rounding Off Number(s) to Specified Significant Figures Round off number(s) to specified significant figures, using two simple/powerful MATLAB functions. Author: Yuzo Toya

Note: This function provides expected results when handing numerical values in double or less precision.

29 Apr 2009 Rounding Off Number(s) to Specified Significant Figures Round off number(s) to specified significant figures, using two simple/powerful MATLAB functions. Author: Yuzo Toya

The beauty rests in the simplicity of it all, but I am not claiming for its originality -- it's all there in the MATLAB tool package. I decided to share "this code" mainly because of its simplicity, and hope that you will find it useful in any way.

Comments and Ratings on Yuzo's Files View all
Updated File Comment by Comments Rating
28 Jan 2012 Rounding Off Number(s) to Specified Significant Figures Round off number(s) to specified significant figures, using two simple/powerful MATLAB functions. Author: Yuzo Toya Yonghao

How to ceil/floor round to the significant number?

22 Jan 2012 Rounding Off Number(s) to Specified Significant Figures Round off number(s) to specified significant figures, using two simple/powerful MATLAB functions. Author: Yuzo Toya SK
30 Apr 2011 Rounding Off Number(s) to Specified Significant Figures Round off number(s) to specified significant figures, using two simple/powerful MATLAB functions. Author: Yuzo Toya Toya, Yuzo

Neha, You probably did not place the program / code (spa_sf.m) in the MATLAB's search path. Try running the program after moving the file "spa_sf.m" to the MATLAB's search path or to the current directory. Alternatively, you can set the path to the directory where the file "spa_sf.m" is stored on your computer. (From the Menubar, File >> Set Path...)

22 Apr 2011 Rounding Off Number(s) to Specified Significant Figures Round off number(s) to specified significant figures, using two simple/powerful MATLAB functions. Author: Yuzo Toya Neha

It is not working. I am trying to round off a matrix which contains double values, it shows the error:
Undefined function or method 'spa_sf' for input arguments of type 'double'.

28 Jul 2010 Rounding Off Number(s) to Specified Significant Figures Round off number(s) to specified significant figures, using two simple/powerful MATLAB functions. Author: Yuzo Toya Lewen, Geoffrey
Top Tags Applied by Yuzo
decimal, decimal places, precision, round, rounding
Files Tagged by Yuzo
Updated   File Tags Downloads
(last 30 days)
Comments Rating
28 Apr 2009 Rounding Off Number(s) to Specified Significant Figures Round off number(s) to specified significant figures, using two simple/powerful MATLAB functions. Author: Yuzo Toya significant figures, significant digits, rounding, precision, round, decimal 48 7
  • 3.75
3.8 | 4 ratings

Contact us at files@mathworks.com