function y = roundn(A,n); % ROUNDN y = roundn(A,n) % Version of 7/28/97 % Rounds matrix A to n decimals y = round(A*10^n)/10^n;