Software Techniques Inc. (www.stiwww.com) Rchoose.m Rounds a scalar, matrix or vector to a specified number of decimal places Works with negative numbers too Format is roundoff(number,decimal_places) Sample usage A = rand(1,5); B = Roundoff(A,4); % B will contain all the elements of array A rounded to 4 decimal places Users are encouraged to improve upon this function however you must reference Software Techniques Inc. as the original author and have a link in the M-file pointing to our site (www.stiwww.com). Likewise if we receive any major improvements to the M-file from you, the user we will do the same. I.e. your email address or website will also be noted in the comments of the M-file.